CBA_fnc_removeMagazineCargo

Description

Function to remove specific items from local cargo space.

Parameters

_unitthe vehicle providing cargo space [Object]
_itemclassname of item to remove [String]
_countnumber of items to remove [Number] (Default: 1)

Returns

true on success, false otherwise (error or no such item in cargo)

Examples

 // remove 1 Smokegrenade locally from the box
_success = [myCoolWeaponBox, "SmokeShell"] call CBA_fnc_removeMagazineCargo;

// remove 2 Handgrenades locally from the box
_success = [myCoolWeaponBox, "HandGrenade_West", 2] call CBA_fnc_removeMagazineCargo;

Author

silencer.helling3r 2012-12-22

Function to remove specific items from global cargo space.
Close