mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
648 B
Plaintext
21 lines
648 B
Plaintext
#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 {};
|
|
|
|
["playerVehicleChanged", {_this call FUNC(handlePlayerVehicleChanged);}] call EFUNC(common,addEventHandler);
|