Removes specific magazine(s) from cargo space.
_container | Object with cargo <OBJECT> |
_item | Classname of magazine(s) to remove STRING |
_count | Number of magazine(s) to remove <NUMBER> (Default: 1) |
_ammo | Ammo of magazine(s) to remove (-1 for magazine(s) with any ammo) <NUMBER> (Default: -1) |
true on success, false otherwise <BOOLEAN>
// Remove 1 Smokegrenade from a box _success = [myCoolMagazineBox, "SmokeShell"] call CBA_fnc_removeMagazineCargo; // Remove 2 Handgrenades from a box _success = [myCoolMagazineBox, "HandGrenade_West", 2] call CBA_fnc_removeMagazineCargo; // Remove 2 magazines which each have 5 bullets in them from a box _success = [myCoolMagazineBox, "30Rnd_65x39_caseless_mag", 2, 5] call CBA_fnc_removeMagazineCargo;
silencer.helling3r 2012-12-22, Jonpas, esteldunedain, johnb43 (from ACE)