CBA_fnc_removeWeaponCargoGlobal

Description

Function to remove specific items from global cargo space.  MP synchronized.

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

// remove 2 M16 globally from the box
_success = [myCoolWeaponBox, "M16A2", 2] call CBA_fnc_removeWeaponCargoGlobal;

Author

silencer.helling3r 2012-12-22

Function to remove specific items from local cargo space.
Close