CBA_fnc_addMagazineCargo

Description

Add magazine(s) to a vehicle’s cargo.

Function which verifies existence of _item and _unit, returns false in case of trouble, or when able to add _item to _unit true in case of success.

Parameters

_unitthe vehicle [Object]
_itemname of magazine to [String]
_countnumber of magazines to add [Number] (Default: 1)

Returns

true on success, false otherwise

Examples

// Add one mine to the cargo of SomeTruck
_result = [ SomeTruck, "Mine"] call CBA_fnc_AddMagazineCargo

// Add three smoke cans to MyCar
_result = [ MyCar, "SmokeShell", 3] call CBA_fnc_AddMagazineCargo

Author

Close