ACE3/TO_MERGE/ace/arty_aimingpoints/fnc_lamp.sqf

5 lines
368 B
Plaintext

//fnc_lamp.sqf
#include "\x\ace\addons\sys_arty_aimingpoints\script_component.hpp"
_currentState = GVAR(currentAimingCircle) getVariable [QGVAR(aimingCircleLampOn), false];
GVAR(currentAimingCircle) setVariable [QGVAR(aimingCircleLampOn), !_currentState, true];
[QGVAR(aimingCircleLightEvent), [GVAR(currentAimingCircle), !_currentState]] call CBA_fnc_globalEvent;