2016-09-04 09:25:03 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2019-07-03 14:59:28 +00:00
|
|
|
["ace_settingsInitialized", {
|
2016-09-06 03:35:01 +00:00
|
|
|
TRACE_1("settingsInitialized", GVAR(enabledFor));
|
|
|
|
if (GVAR(enabledFor) == 0) exitWith {}; // 0: disabled
|
|
|
|
if ((GVAR(enabledFor) == 1) && {!isServer} && {hasInterface}) exitWith {}; // 1: Don't Run on non-hc Clients
|
2018-05-08 09:16:12 +00:00
|
|
|
|
2016-09-04 09:25:03 +00:00
|
|
|
["ace_firedNonPlayer", {
|
|
|
|
_unit setVariable [QGVAR(lastFired), CBA_missionTime];
|
|
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
|
2019-07-03 14:59:28 +00:00
|
|
|
#include "stateMachine.sqf"
|
|
|
|
}] call CBA_fnc_addEventHandler;
|
2016-09-04 09:25:03 +00:00
|
|
|
|