Add backpack(s) to vehicle cargo.
Function which verifies existence of _item and _container, returns false in case of trouble, or when able to add _item to _container true in case of success.
_container | the vehicle <OBJECT> |
_item | name of backpack STRING |
_count | number of weapons to add <NUMBER> (Default: 1) |
_verify | if true, then put item on the ground if it can’t be added <BOOLEAN> |
true on success, false otherwise <BOOLEAN>
// Add one laser designator to the cargo of SomeTruck _result = [SomeTruck, "B_Kitbag_cbr"] call CBA_fnc_addBackpackCargo // Add two MXC rifles to MyAPC. If the inventory is full, then put the rest on the ground _result = [MyAPC, "B_Kitbag_cbr", 2, true] call CBA_fnc_addBackpackCargo
commy2