mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
998f86f034
* first pass * second pass * third pass * final pass * missing commas * newlines * switch to cba eventhandler * newlines, formatting * laser - movedToSQF * add logging to ace_common_fnc_cbaSettings_loadFromConfig * Update initSettings.sqf Co-authored-by: PabstMirror <pabstmirror@gmail.com>
22 lines
971 B
Plaintext
22 lines
971 B
Plaintext
#include "script_component.hpp"
|
|
|
|
//Add Event Handlers
|
|
[QGVAR(setupCustomKey), {_this call FUNC(serverSetupCustomKeyEH)}] call CBA_fnc_addEventHandler;
|
|
[QGVAR(setVehicleLock), {_this call FUNC(setVehicleLockEH)}] call CBA_fnc_addEventHandler;
|
|
|
|
["CBA_settingsInitialized", {
|
|
TRACE_2("SettingsInitialized eh",GVAR(LockVehicleInventory),GVAR(VehicleStartingLockState));
|
|
|
|
if (hasInterface && {GVAR(LockVehicleInventory)}) then {
|
|
["CAManBase", "InventoryOpened", {_this call FUNC(onOpenInventory)}] call CBA_fnc_addClassEventHandler;
|
|
};
|
|
if (isServer && {GVAR(VehicleStartingLockState) != -1}) then {
|
|
[{
|
|
TRACE_1("adding lock handler",GVAR(VehicleStartingLockState));
|
|
{
|
|
[_x, "initpost", LINKFUNC(handleVehicleInitPost), true, [], true] call CBA_fnc_addClassEventHandler;
|
|
} forEach ["Car", "Tank", "Air"];
|
|
}, [], 0.25] call CBA_fnc_waitAndExecute;
|
|
};
|
|
}] call CBA_fnc_addEventHandler;
|