CBA_fnc_addBackpackCargo

Description

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.

Parameters

_containerthe vehicle <OBJECT>
_itemname of backpack STRING
_countnumber of weapons to add <NUMBER> (Default: 1)
_verifyif true, then put item on the ground if it can’t be added <BOOLEAN>

Returns

true on success, false otherwise <BOOLEAN>

Examples

// 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

Author

commy2

string used by format
Close