2015-01-12 10:02:44 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-02-11 21:39:31 +00:00
|
|
|
GVAR(enabled) = false;
|
2015-10-21 20:17:28 +00:00
|
|
|
GVAR(time) = 0;
|
2015-01-12 10:06:27 +00:00
|
|
|
GVAR(position) = [0,0,0];
|
2015-01-18 15:42:33 +00:00
|
|
|
|
2015-04-13 03:44:19 +00:00
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
|
2015-02-03 22:03:43 +00:00
|
|
|
#include "initKeybinds.sqf"
|
2015-04-03 15:50:52 +00:00
|
|
|
|
2016-05-24 13:13:11 +00:00
|
|
|
["ace_infoDisplayChanged", {
|
2015-04-03 17:25:28 +00:00
|
|
|
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];
|
2015-04-03 15:50:52 +00:00
|
|
|
};
|
2016-05-22 15:29:05 +00:00
|
|
|
}] call CBA_fnc_addEventHandler;
|
2015-04-07 21:18:31 +00:00
|
|
|
|
2015-04-03 16:49:41 +00:00
|
|
|
// Register event for global updates
|
2016-05-22 15:29:05 +00:00
|
|
|
[QGVAR(forceUpdate), {[ACE_player] call FUNC(onForceUpdate)}] call CBA_fnc_addEventHandler;
|
2017-05-15 22:30:47 +00:00
|
|
|
|
2020-05-07 16:28:32 +00:00
|
|
|
[QGVAR(addFiredEH), {
|
|
|
|
TRACE_1("Adding firedEH",_this);
|
|
|
|
["ace_firedPlayerVehicle", LINKFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
|
|
|
["ace_firedPlayerVehicleNonLocal", LINKFUNC(firedEH)] call CBA_fnc_addEventHandler;
|
|
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
|
2017-05-15 22:30:47 +00:00
|
|
|
#ifdef DEBUG_MODE_FULL
|
2019-04-27 19:04:47 +00:00
|
|
|
call compile preprocessFileLineNumbers QPATHTOF(dev\test_debugConfigs.sqf);
|
2017-05-15 22:30:47 +00:00
|
|
|
#endif
|