ACE3/addons/mk6mortar/XEH_postInit.sqf

24 lines
769 B
Plaintext
Raw Normal View History

2015-04-05 06:57:24 +00:00
#include "script_component.hpp"
[QGVAR(addMagazine), {
params ["_static", "_magazine"];
_static addMagazineTurret [_magazine,[0]];
}] call CBA_fnc_addEventHandler;
[QGVAR(removeMagazine), {
params ["_static", "_magazine"];
_static removeMagazineTurret [_magazine,[0]];
}] call CBA_fnc_addEventHandler;
[QGVAR(setAmmo), {
params ["_static", "_magazine","_ammoCount"];
_static setMagazineTurretAmmo [_magazine, _ammoCount, [0]];
}] call CBA_fnc_addEventHandler;
2015-12-19 01:18:35 +00:00
2016-05-24 13:13:11 +00:00
["ace_initMortar", {_this call FUNC(mortarInit);}] call CBA_fnc_addEventHandler;
2016-03-14 13:21:02 +00:00
if (!hasInterface) exitWith {};
2015-12-19 01:18:35 +00:00
["vehicle", FUNC(handlePlayerVehicleChanged)] call CBA_fnc_addPlayerEventHandler;
["ace_infoDisplayChanged", FUNC(turretDisplayLoaded)] call CBA_fnc_addEventHandler;