CBA_fnc_removeBackpackCargo

Description

Removes specific backpack(s) from cargo space.

Warning: Backpack’s inventory information is lost.

Parameters

_containerObject with cargo <OBJECT>
_itemClassname of backpack(s) to remove STRING
_countNumber of backpack(s) to remove <NUMBER> (Default: 1)

Returns

true on success, false otherwise <BOOLEAN>

Examples

 // Remove 1 Kitbag Tan backpack locally from a box
_success = [myCoolBackpackBox, "B_Kitbag_cbr"] call CBA_fnc_removeBackpackCargo;

// Remove 2 Carryall Desert Camo backpacks locally from a box
_success = [myCoolBackpackBox, "B_Carryall_ocamo", 2] call CBA_fnc_removeBackpackCargo;

Author

Jonpas

string used by format
Close