2015-04-05 06:57:24 +00:00
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-12-16 19:22:18 +00:00
|
|
|
[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);
|
2015-12-19 01:18:35 +00:00
|
|
|
|
|
|
|
if (!hasInterface) exitWith {};
|
|
|
|
|
|
|
|
["playerVehicleChanged", {_this call FUNC(handlePlayerVehicleChanged);}] call EFUNC(common,addEventHandler);
|
2016-02-25 19:59:00 +00:00
|
|
|
["infoDisplayChanged", {_this call FUNC(turretDisplayLoaded);}] call EFUNC(common,addEventHandler);
|