CBA_fnc_addMagazineCargo

Description

Add magazine(s) to a vehicle’s 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 magazine to STRING
_countnumber of magazines 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 mine to the cargo of SomeTruck
_result = [SomeTruck, "ATMine"] call CBA_fnc_addMagazineCargo

// Add three smoke cans to MyCar. If the inventory is full, then put the rest on the ground
_result = [MyCar, "SmokeShell", 3, true] call CBA_fnc_addMagazineCargo

Author

string used by format
Close