mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Changed to postInit
This commit is contained in:
parent
579f861b8f
commit
c3788e8038
@ -5,7 +5,7 @@ class Extended_PreInit_EventHandlers {
|
|||||||
};
|
};
|
||||||
class Extended_PostInit_EventHandlers {
|
class Extended_PostInit_EventHandlers {
|
||||||
class ADDON {
|
class ADDON {
|
||||||
clientInit = QUOTE(call COMPILE_FILE(XEH_clientInit));
|
postInit = QUOTE(call COMPILE_FILE(XEH_postInit));
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
class Extended_FiredBIS_EventHandlers {
|
class Extended_FiredBIS_EventHandlers {
|
||||||
|
@ -1,27 +1,21 @@
|
|||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
|
[QGVAR(addMagazine), {
|
||||||
|
params ["_static", "_magazine"];
|
||||||
|
_static addMagazineTurret [_magazine,[0]];
|
||||||
|
}] call EFUNC(common,addEventHandler);
|
||||||
|
|
||||||
|
[QGVAR(removeMagazine), {
|
||||||
|
params ["_static", "_magazine"];
|
||||||
|
_static removeMagazineTurret [_magazine,[0]];
|
||||||
|
}] call EFUNC(common,addEventHandler);
|
||||||
|
|
||||||
|
[QGVAR(setAmmo), {
|
||||||
|
params ["_static", "_magazine","_ammoCount"];
|
||||||
|
_static setMagazineTurretAmmo [_magazine, _ammoCount, [0]];
|
||||||
|
}] call EFUNC(common,addEventHandler);
|
||||||
|
|
||||||
if (!hasInterface) exitWith {};
|
if (!hasInterface) exitWith {};
|
||||||
|
|
||||||
["playerVehicleChanged", {_this call FUNC(handlePlayerVehicleChanged);}] call EFUNC(common,addEventHandler);
|
["playerVehicleChanged", {_this call FUNC(handlePlayerVehicleChanged);}] call EFUNC(common,addEventHandler);
|
||||||
["infoDisplayChanged", {_this call FUNC(turretDisplayLoaded);}] call EFUNC(common,addEventHandler);
|
["infoDisplayChanged", {_this call FUNC(turretDisplayLoaded);}] call EFUNC(common,addEventHandler);
|
||||||
|
|
||||||
[QGVAR(addMagazine), {
|
|
||||||
params ["_static", "_magazine"];
|
|
||||||
|
|
||||||
_static addMagazineTurret [_magazine,[0]];
|
|
||||||
|
|
||||||
}] call EFUNC(common,addEventHandler);
|
|
||||||
|
|
||||||
[QGVAR(removeMagazine), {
|
|
||||||
params ["_static", "_magazine"];
|
|
||||||
|
|
||||||
_static removeMagazineTurret [_magazine,[0]];
|
|
||||||
|
|
||||||
}] call EFUNC(common,addEventHandler);
|
|
||||||
|
|
||||||
[QGVAR(setAmmo), {
|
|
||||||
params ["_static", "_magazine","_ammoCount"];
|
|
||||||
|
|
||||||
_static setMagazineTurretAmmo [_magazine, _ammoCount, [0]];
|
|
||||||
|
|
||||||
}] call EFUNC(common,addEventHandler);
|
|
Loading…
Reference in New Issue
Block a user