ACE3/addons/fcs/XEH_postInit.sqf

28 lines
864 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 {};
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
};
}] call CBA_fnc_addEventHandler;
2015-04-07 21:18:31 +00:00
2016-02-06 19:29:58 +00:00
// Register fire event handler
2016-05-24 13:13:11 +00:00
["ace_firedPlayerVehicle", DFUNC(firedEH)] call CBA_fnc_addEventHandler;
["ace_firedPlayerVehicleNonLocal", DFUNC(firedEH)] call CBA_fnc_addEventHandler;
2016-02-06 19:29:58 +00:00
// Register event for global updates
[QGVAR(forceUpdate), {[ACE_player] call FUNC(onForceUpdate)}] call CBA_fnc_addEventHandler;
#ifdef DEBUG_MODE_FULL
call compile preprocessFileLineNumbers QPATHTOF(functions\dev_debugConfigs.sqf);
#endif