Function to remove specific items from global cargo space. MP synchronized.
_unit | the vehicle providing cargo space [Object] |
_item | classname of item to remove [String] |
_count | number of items to remove [Number] (Default: 1) |
true on success, false otherwise (error or no such item in cargo)
// remove 1 Smokegrenade globally from the box _success = [myCoolWeaponBox, "SmokeShell"] call CBA_fnc_removeMagazineCargoGlobal; // remove 2 Handgrenades globally from the box _success = [myCoolWeaponBox, "HandGrenade_West", 2] call CBA_fnc_removeMagazineCargoGlobal;
silencer.helling3r 2012-12-22