enableReload: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(53 intermediate revisions by 10 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|ENABLERELOAD]]
{{RV|type=command
[[Category:Scripting Commands ArmA|ENABLERELOAD]]


|game1= arma1
|version1= 1.00


<h2 style="color:#000066">'''''object'' enableReload ''enable'''''</h2>
|game2= arma2
|version2= 1.00


|game3= arma2oa
|version3= 1.50


'''Operand types:'''
|game4= tkoh
|version4= 1.00


'''object''': [[Object]]
|game5= arma3
   
|version5= 0.50
'''enable''': [[Boolean]]


'''Type of returned value:'''
|gr1= Weapons


[[Nothing]]
|descr= Enable / disable reload when magazine is empty.


'''Compatibility:'''
|s1= object [[enableReload]] enable


Version 2.92 required.
|p1= object: [[Object]]


'''Description:'''
|p2= enable: [[Boolean]]


Enable / disable reload right after magazine is empty.
|r1= [[Nothing]]


|x1= <sqf>_vehicle enableReload false;</sqf>


'''Example''':
|seealso= [[reloadEnabled]] [[reload]] [[needReload]]
 
}}
_vehicle '''enableReload''' false

Latest revision as of 11:22, 13 May 2022

Hover & click on the images for description

Description

Description:
Enable / disable reload when magazine is empty.
Groups:
Weapons

Syntax

Syntax:
object enableReload enable
Parameters:
object: Object
enable: Boolean
Return Value:
Nothing

Examples

Example 1:
_vehicle enableReload false;

Additional Information

See also:
reloadEnabled reload needReload

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note