mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
13 lines
734 B
Plaintext
13 lines
734 B
Plaintext
#define DEBUG_MODE_FULL
|
|
#include "script_component.hpp"
|
|
// TODO: we should do this differently eventually
|
|
private["_onActionId", "_offActionId"];
|
|
TRACE_1("ENTER", _this);
|
|
|
|
// TODO: THIS SHOULD NOT BE ACTIONS EVENTUALLY
|
|
|
|
_onActionId = player addAction ["Laser Designator On", { _this call FUNC(laserHudDesignateOn) }, [], 1, false, false, "", QUOTE( (gunner (vehicle player)) == player && !GVAR(laserActive))];
|
|
player setVariable[QGVAR(onActionId), _onActionId, false];
|
|
|
|
_offActionId = player addAction ["Laser Designator Off", { _this call FUNC(laserHudDesignateOff) }, [], 1, false, false, "", QUOTE( (gunner (vehicle player)) == player && GVAR(laserActive))];
|
|
player setVariable[QGVAR(offActionId), _offActionId, false]; |