enableReload: Difference between revisions

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


|game1= arma1
|version1= 1.00


<h2 style="color:#000066">'''''object'' enableReload ''enable'''''</h2>
|game2= arma2
|version2= 1.00


|game3= arma2oa
|version3= 1.50


'''Operand types:'''
|game4= tkoh
|version4= 1.00


'''object''': [[Object]]
|game5= arma3
   
|version5= 0.50
'''enable''': [[Boolean]]


'''Type of returned value:'''
|gr1= Weapons


[[Nothing]]
|arg= global
|eff= local


'''Compatibility:'''
|descr= Enable / disable auto-reload (including AI) when magazine is empty. Default - enabled.


Version 2.92 required.
|s1= object [[enableReload]] enable


'''Description:'''
|p1= object: [[Object]]


Enable / disable reload right after magazine is empty.
|p2= enable: [[Boolean]]


|r1= [[Nothing]]


'''Example''':
|x1= <sqf>_vehicle enableReload false;</sqf>
 
 
_vehicle '''enableReload''' false
|seealso= [[reloadEnabled]] [[reload]] [[needReload]]
}}

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