enableReload: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(39 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| arma |= Game name
|game1= arma1
|version1= 1.00


|1.00|= Game version
|game2= arma2
____________________________________________________________________________________________
|version2= 1.00


| Enable / disable reload when magazine is empty. |DESCRIPTION=
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| object '''enableReload''' enable |SYNTAX=
|game4= tkoh
|version4= 1.00


|p1= object: [[Object]] |PARAMETER1=
|game5= arma3
|version5= 0.50


|p2= enable: [[Boolean]] |PARAMETER2=
|gr1= Weapons


| [[Nothing]] |RETURNVALUE=
|descr= Enable / disable reload when magazine is empty.
____________________________________________________________________________________________
 
|x1= <code>_vehicle [[enableReload]] [[false]];</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[reloadEnabled]], [[reload]], [[needReload]] |SEEALSO=
|s1= object [[enableReload]] enable


}}
|p1= object: [[Object]]


<h3 style="display:none">Notes</h3>
|p2= enable: [[Boolean]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Nothing]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>_vehicle enableReload false;</sqf>


[[Category:Scripting Commands|ENABLERELOAD]]
|seealso= [[reloadEnabled]] [[reload]] [[needReload]]
[[Category:Scripting Commands ArmA|ENABLERELOAD]]
}}
[[Category:Command_Group:_Unit_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Weapons|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

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