mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
cleanup switchunits
This commit is contained in:
parent
cf0b2c2a52
commit
0bd358c415
@ -1,12 +1,11 @@
|
||||
class Extended_PreInit_EventHandlers {
|
||||
class ADDON {
|
||||
init = QUOTE( call COMPILE_FILE(XEH_preInit) );
|
||||
};
|
||||
class ADDON {
|
||||
init = QUOTE( call COMPILE_FILE(XEH_preInit) );
|
||||
};
|
||||
};
|
||||
|
||||
class Extended_PostInit_EventHandlers {
|
||||
class ADDON {
|
||||
clientInit = QUOTE( call COMPILE_FILE(XEH_clientInit) );
|
||||
init = QUOTE( call COMPILE_FILE(XEH_postInit) );
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -50,4 +50,4 @@ class CfgVehicles {
|
||||
description = "$STR_ACE_SwitchUnits_Module_Description";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
#include "script_component.hpp"
|
||||
|
||||
|
||||
if (missionNamespace getVariable [QGVAR(EnableSwitchUnits), false]) then {
|
||||
[player] call FUNC(startSwitchUnits);
|
||||
} else {
|
||||
@ -24,5 +25,5 @@ if (missionNamespace getVariable [QGVAR(EnableSwitchUnits), false]) then {
|
||||
if ((_name == QGVAR(EnableSwitchUnits)) && {_value}) then {
|
||||
[player] call FUNC(startSwitchUnits);
|
||||
};
|
||||
}] call EFUNC(common,addEventhandler);
|
||||
}] call EFUNC(common,addEventhandler);
|
||||
};
|
@ -14,4 +14,4 @@ class CfgPatches {
|
||||
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "ACE_Settings.hpp"
|
||||
#include "ACE_Settings.hpp"
|
||||
|
Loading…
Reference in New Issue
Block a user