mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
5e396a3793
This reverts commit 4d1a5194ea
.
24 lines
752 B
Plaintext
24 lines
752 B
Plaintext
#include "script_component.hpp"
|
|
|
|
GVAR(enabled) = false;
|
|
GVAR(time) = 0;
|
|
GVAR(position) = [0,0,0];
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
#include "initKeybinds.sqf"
|
|
|
|
["ace_infoDisplayChanged", {
|
|
if (!isNull ((_this select 0) displayCtrl 1713151)) then {
|
|
uiNamespace setVariable ["ACE_dlgRangefinder", _this select 0];
|
|
((_this select 0) displayCtrl 151) ctrlSetTextColor [0,0,0,0];
|
|
};
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
// Register fire event handler
|
|
["ace_firedPlayerVehicle", DFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
|
["ace_firedPlayerVehicleNonLocal", DFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
|
|
|
// Register event for global updates
|
|
[QGVAR(forceUpdate), {[ACE_player] call FUNC(onForceUpdate)}] call CBA_fnc_addEventHandler;
|