enableGunLights: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (see also)
Line 18: Line 18:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>group enableGunLights true</pre> |= Example 1
|x1= <code>_grp [[enableGunLights]] [[true]]</code> |= Example 1
|x2= <pre>unitName enableGunLights true</pre> |= Example 2
|x2= <code>_unit [[enableGunLights]] [[true]]</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[isFlashlightOn]] |= See also


}}
}}

Revision as of 15:18, 2 December 2016

Hover & click on the images for description

Description

Description:
Force the AI to use gun lights
Groups:
Uncategorised

Syntax

Syntax:
thing enableGunLights value
Parameters:
thing: Object or Group - the unit or the group forced to use gun lights
value: Boolean - true/false / String (Arma 3) - "AUTO", "forceOn", "forceOff"
Return Value:
Nothing

Examples

Example 1:
_grp enableGunLights true
Example 2:
_unit enableGunLights true

Additional Information

See also:
isFlashlightOn

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

Notes

Posted on 27 July, 2011
kju
This command can be used to force lights on, but not to force lights off. (Source)
Posted on 17 April, 2013
cobra4v320
In order for this command to work in ARMA 3 you should use groupname enableGunLights "AUTO" or soldierOne enableGunLights "AUTO". Other options are "forceOn" or "forceOff". (Source)

Bottom Section