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 or String - The string argument can be one of "AUTO", "forceOn", "forceOff" and was introduced in
Introduced with Arma 3 version 1.00
Return Value:

Nothing

Examples

Example 1:
_group enableGunLights true; // Arma 2 OA _group enableGunLights "forceOn"; // Arma 3
Example 2:
_unit enableGunLights false; // Arma 2 OA _unit enableGunLights "AUTO"; // Arma 3
Example 3:
_unit enableGunLights "forceOff"; // Arma 3 only

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
Introduced with Arma 2: Operation Arrowhead version 1.51
This command can be used to force lights on, but not to force lights off.

Bottom Section