{"name":"enableGunLights","operator":null,"title":"enableGunLights","type":"command","url":"https://community.bistudio.com/wiki/enableGunLights","revid":351992,"updated":"2024-02-01T23:23:57Z","groups":["Lights","Weapons"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma3","name":"Arma 3","version":"0.50"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"global","server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"target","type":"Group or Object","optional":false,"default":null,"description":"the group forced to use gun lights. If unit is supplied as argument, unit's group is used","types":["Group","Object"],"since":null,"text":"target: Group or Object - the group forced to use gun lights. If unit is supplied as argument, unit's group is used"},{"name":"mode","type":"String","optional":false,"default":null,"description":"can be:\n- `\"Auto\"` - Depends on combat mode\n- `\"ForceOn\"` - Always on\n- `\"ForceOff\"` - Always off","types":["String"],"since":null,"text":"mode: String - can be:\n- `\"Auto\"` - Depends on combat mode\n- `\"ForceOn\"` - Always on\n- `\"ForceOff\"` - Always off"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"},"form":"binary","operator":null,"left":{"text":"target","types":["Group","Object"]},"right":{"text":"mode","types":["String"]}}],"examples":[{"text":"```sqf\n_groupA enableGunLights \"Auto\";\n```","code":["_groupA enableGunLights \"Auto\";"]},{"text":"```sqf\n_unit1 enableGunLights \"ForceOff\"; // sets _unit1's GROUP behaviour to not use gun lights\n```","code":["_unit1 enableGunLights \"ForceOff\"; // sets _unit1's GROUP behaviour to not use gun lights"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["isFlashlightOn","enableIRLasers"],"notes":[],"categories":["Arma 2: Operation Arrowhead: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Lights","Command Group: Weapons","Introduced with Arma 2: Operation Arrowhead version 1.50","Introduced with Arma 3 version 0.50","Scripting Commands","Scripting Commands: Global Effect","Take On Helicopters: Scripting Commands"]}