Arma 3 Scripting

Command in Lights, Weapons

enableGunLights

Also available as Markdown and JSON, or read the original wiki page.

Description

Toggles the target group's gun lights. disableAI "LIGHTS" will disable the use of gun lights.

Important

This command acts on each unit of the provided group or provided unit's group; there is no need to apply it on each unit.

Syntax

target enableGunLights mode

Parameters:

Returns: Nothing

Examples

Example 1

_groupA enableGunLights "Auto";

Example 2

_unit1 enableGunLights "ForceOff"; // sets _unit1's GROUP behaviour to not use gun lights

See also

isFlashlightOn · enableIRLasers