Arma 3 Scripting

enableGunLights

  • Local argument
  • Global effect
  • Arma 3 v0.50

Command · also in Weapons · Markdown · JSON · 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