CBA_fnc_removeWeaponCargo

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 Binocular locally from the box
_success = [myCoolWeaponBox, "Binocular"] call CBA_fnc_removeWeaponCargo;

// remove 2 M16A2 locally from the box
_success = [myCoolWeaponBox, "M16A2", 2] call CBA_fnc_removeWeaponCargo;

Author

silencer.helling3r 2012-12-22

Function to remove specific items from global cargo space.
Close