reloadEnabled: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
No edit summary
 
(50 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|RELOADENABLED]]
{{RV|type=command
[[Category:Scripting Commands ArmA|RELOADENABLED]]


|game1= arma1
|version1= 1.00


|game2= arma2
|version2= 1.00


|game3= arma2oa
|version3= 1.50


<h2 style="color:#000066">''''' reloadEnabled''''' ''vehicle''</h2>
|game4= tkoh
|version4= 1.00


|game5= arma3
|version5= 0.50


'''Operand types:'''
|gr1= Weapons


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


'''Type of returned value:'''
|s1= [[reloadEnabled]] unitName


Nothing
|p1= unitName: [[Object]]


'''Compatibility:'''
|r1= [[Boolean]]


Version 2.92 required.
|x1= <sqf>private _aiCanReload = reloadEnabled _unit1;</sqf>


'''Description:'''
|seealso= [[enableReload]] [[reload]] [[needReload]]
 
}}
Check whether magazine is reloaded whenever emptied.
 
'''Example:'''

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