Removes specific backpack(s) from cargo space.
Warning: All weapon attachments/magazines in all backpacks in container will become detached. Warning: Preset weapons without non-preset parents will get their attachments readded (engine limitation).
_container | Object with cargo <OBJECT> |
_item | Classname of backpack(s) to remove STRING |
_count | Number of backpack(s) to remove <NUMBER> (Default: 1) |
_keepContents | Keep contents of the removed backpack <BOOLEAN> (Default: false) |
true on success, false otherwise <BOOLEAN>
// Remove 1 Kitbag Tan backpack from a box _success = [myCoolBackpackBox, "B_Kitbag_cbr"] call CBA_fnc_removeBackpackCargo; // Remove 2 Carryall Desert Camo backpacks from a box _success = [myCoolBackpackBox, "B_Carryall_ocamo", 2] call CBA_fnc_removeBackpackCargo; // Remove 1 Backpack from a box and keep contents _success = [myCoolWeaponBox, "B_AssaultPack_khk", 1, true] call CBA_fnc_removeBackpackCargo;
Jonpas