{"name":"enableGunLights","title":"enableGunLights","type":"command","url":"https://community.bistudio.com/wiki/enableGunLights","revid":351992,"updated":"2024-02-01T23:23:57Z","groups":["Lights","Weapons"],"status":"ok","games":{"arma3":"0.50"},"since":"arma3 0.50","arma3_since":"0.50","locality":{"argument":"local","effect":"global"},"description":"Toggles the target group's gun lights. disableAI \"LIGHTS\" will disable the use of gun lights.\n\n> [!IMPORTANT]\n> 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.","syntaxes":[{"syntax":"target enableGunLights mode","params":[{"name":"target","type":"Group or Object","description":"the group forced to use gun lights. If unit is supplied as argument, unit's group is used","type_expr":"Group | Object"},{"name":"mode","type":"String","description":"can be:\n\n- `\"Auto\"` - Depends on combat mode\n- `\"ForceOn\"` - Always on\n- `\"ForceOff\"` - Always off","type_expr":"String"}],"returns":{"type":"Nothing","type_expr":"Nothing"},"form":"binary","left":{"text":"target"},"right":{"text":"mode"}}],"examples":[{"code":["_groupA enableGunLights \"Auto\";"]},{"code":["_unit1 enableGunLights \"ForceOff\"; // sets _unit1's GROUP behaviour to not use gun lights"]}],"see_also":["isFlashlightOn","enableIRLasers"],"categories_extra":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Introduced with Arma 2: Operation Arrowhead version 1.50","Take On Helicopters: Scripting Commands"]}