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.
| _container | the vehicle <OBJECT> |
| _item | name of magazine to STRING |
| _count | number of magazines to add <NUMBER> (Default: 1) |
| _verify | if true, then put item on the ground if it can’t be added <BOOLEAN> |
| _ammo | ammo count <NUMBER> (Default: 1E6) |
true on success, false otherwise <BOOLEAN>
// 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