enableGunLights

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Arma 2: Operation Arrowhead version 1.51
  Arguments of this scripting command have to be local to the client the command is executed onEffects of this scripting command are broadcasted over the network and happen on every computer in the network

Click on the images for descriptions

Introduced in

Game:
Arma 2: Operation Arrowhead
Version:
1.51

Description

Description:
Force the AI to use gun lights

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

Multiplayer:
-
See also:
isFlashlightOn

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

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