ACE3/addons/fcs/XEH_postInit.sqf
PabstMirror 305c5a7be7 1.70 FCS - Remove ACE_FCS from most vics (#5152)
* Handle 1.70 FCS

* Cleanup CfgWeapons

* Add warning for discreteDistance
2017-05-16 00:30:47 +02:00

28 lines
864 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;
#ifdef DEBUG_MODE_FULL
call compile preprocessFileLineNumbers QPATHTOF(functions\dev_debugConfigs.sqf);
#endif