reloadEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "| arma |" to "| arma1 |")
No edit summary
 
(24 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


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


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


|gr1= Weapons |GROUP1=
|game3= arma2oa
____________________________________________________________________________________________
|version3= 1.50


| Check whether magazine is reloaded whenever emptied. |DESCRIPTION=
|game4= tkoh
____________________________________________________________________________________________
|version4= 1.00


| [[reloadEnabled]] unitName |SYNTAX=
|game5= arma3
|version5= 0.50


|p1= unitName: [[Object]] |PARAMETER1=
|gr1= Weapons


| [[Boolean]] |RETURNVALUE=
|descr= A getter for [[enableReload]]. The value returned is wether or not auto-reload is enabled for current client only.
____________________________________________________________________________________________


|x1= <code>[[private]] _canReload = [[reloadEnabled]] _unit1;</code> |EXAMPLE1=
|s1= [[reloadEnabled]] unitName
____________________________________________________________________________________________


| [[enableReload]], [[reload]], [[needReload]] |SEEALSO=
|p1= unitName: [[Object]]
}}


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


<!-- Note Section END -->
|x1= <sqf>private _aiCanReload = reloadEnabled _unit1;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[enableReload]] [[reload]] [[needReload]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|Scripting Commands ArmA2]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 14:33, 2 November 2024

Hover & click on the images for description

Description

Description:
A getter for enableReload. The value returned is wether or not auto-reload is enabled for current client only.
Groups:
Weapons

Syntax

Syntax:
reloadEnabled unitName
Parameters:
unitName: Object
Return Value:
Boolean

Examples

Example 1:
private _aiCanReload = reloadEnabled _unit1;

Additional Information

See also:
enableReload 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