reloadEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "<code>\[\[private\]\] _([a-zA-Z0-9_]+) = \[\[([a-zA-Z0-9]+)\]\] _([a-zA-Z0-9_]+);?<\/code>" to "<sqf>private _$1 = $2 _$3;</sqf>")
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|RELOADENABLED]]
{{RV|type=command
[[Category:Scripting Commands ArmA|RELOADENABLED]]


{{Command|= Comments
|game1= arma1
____________________________________________________________________________________________
|version1= 1.00


| arma |= Game name
|game2= arma2
|version2= 1.00


|1.00|= Game version
|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= Check whether magazine is reloaded whenever emptied.


____________________________________________________________________________________________
|s1= [[reloadEnabled]] unitName


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


}}
|r1= [[Boolean]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>private _canReload = reloadEnabled _unit1;</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[enableReload]] [[reload]] [[needReload]]
</dl>
}}
 
<h3 style="display:none">Bottom Section</h3>
[[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 22:24, 7 May 2022

Hover & click on the images for description

Description

Description:
Check whether magazine is reloaded whenever emptied.
Groups:
Weapons

Syntax

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

Examples

Example 1:
private _canReload = 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