CBA_fnc_removeMagazine

Description

Remove a magazine.

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

Parameters

_unitthe unit or vehicle <OBJECT>
_itemname of the magazine to remove STRING
_ammoammo count. used to remove a specific magazine (optional) <NUMBER>

Returns

true on success, false otherwise <BOOLEAN>

Examples

_result = [player, "SmokeShell"] call CBA_fnc_removeMagazine

Author

esteldunedain, johnb43 (from ACE)

string used by format
Close