enableReload: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
No edit summary
 
(42 intermediate revisions by 3 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=
|arg= global
____________________________________________________________________________________________
|eff= local
 
|x1= <code>_vehicle [[enableReload]] [[false]];</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[reloadEnabled]], [[reload]], [[needReload]] |SEEALSO=
|descr= Enable / disable auto-reload (including AI) when magazine is empty. Default - enabled.


}}
|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 15:23, 2 November 2024

Hover & click on the images for description

Description

Description:
Enable / disable auto-reload (including AI) when magazine is empty. Default - enabled.
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