ACE3/addons/fcs/XEH_postInit.sqf

30 lines
938 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
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 {};
#include "initKeybinds.inc.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
};
}] call CBA_fnc_addEventHandler;
2015-04-07 21:18:31 +00:00
// Register event for global updates
[QGVAR(forceUpdate), {[ACE_player] call FUNC(onForceUpdate)}] call CBA_fnc_addEventHandler;
[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;
#ifdef DEBUG_MODE_FULL
call compile preprocessFileLineNumbers QPATHTOF(dev\test_debugConfigs.sqf);
#endif