ACE3/addons/vehiclelock/XEH_postInit.sqf

16 lines
569 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
//Add Event Handlers
2016-05-25 00:37:24 +00:00
[QGVAR(setupCustomKey), {_this call FUNC(serverSetupCustomKeyEH)}] call CBA_fnc_addEventHandler;
[QGVAR(setVehicleLock), {_this call FUNC(setVehicleLockEH)}] call CBA_fnc_addEventHandler;
if (!hasInterface) exitwith {};
2016-05-24 13:13:11 +00:00
["ace_settingsInitialized", {
TRACE_1("SettingsInitialized eh",GVAR(LockVehicleInventory));
if (GVAR(LockVehicleInventory)) then {
["CAManBase", "InventoryOpened", {_this call FUNC(onOpenInventory);}] call CBA_fnc_addClassEventHandler;
};
}] call CBA_fnc_addEventHandler;