CBA_fnc_addMagazine

Description

Add magazine to a vehicle/unit.

The function also verifies existence of _item and _unit, returns false in case of trouble, or true when able to add _item to _unit.

Parameters

_unitthe unit or vehicle <OBJECT>
_itemname of the magazine to add STRING
_ammoammo count <NUMBER>
_verifyif true, then put item in vehicle or on the ground if it can’t be added <BOOLEAN>

Returns

true on success, false otherwise <BOOLEAN>

Examples

_result = [player, "SmokeShell"] call CBA_fnc_addMagazine

Author

string used by format
Close