mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
parent
db3b5d924c
commit
6fd561f1f0
@ -17,7 +17,25 @@
|
||||
|
||||
["ace_initMortar", {_this call FUNC(mortarInit);}] call CBA_fnc_addEventHandler;
|
||||
|
||||
if (!hasInterface) exitWith {};
|
||||
if (hasInterface) then {
|
||||
["ace_infoDisplayChanged", FUNC(turretDisplayLoaded)] call CBA_fnc_addEventHandler;
|
||||
};
|
||||
|
||||
["vehicle", FUNC(handlePlayerVehicleChanged)] call CBA_fnc_addPlayerEventHandler;
|
||||
["ace_infoDisplayChanged", FUNC(turretDisplayLoaded)] call CBA_fnc_addEventHandler;
|
||||
["ace_settingsInitialized", {
|
||||
TRACE_1("ace_settingsInitialized",GVAR(useAmmoHandling));
|
||||
|
||||
["vehicle", FUNC(handlePlayerVehicleChanged), true] call CBA_fnc_addPlayerEventHandler;
|
||||
|
||||
if (GVAR(useAmmoHandling)) then {
|
||||
["Mortar_01_base_F", "init", {
|
||||
TRACE_2("mortar init",_this,(_this select 0) turretLocal [0]);
|
||||
|
||||
//wait for proper turret locality change
|
||||
[{
|
||||
TRACE_2("after delay",_this,(_this select 0) turretLocal [0]);
|
||||
["ace_initMortar", _this] call CBA_fnc_localEvent;
|
||||
}, _this, 0.5] call CBA_fnc_waitAndExecute;
|
||||
|
||||
}, true, [], true] call CBA_fnc_addClassEventHandler;
|
||||
};
|
||||
}] call CBA_fnc_addEventHandler;
|
||||
|
Loading…
Reference in New Issue
Block a user