CBA_fnc_dropMagazine

Description

Drops 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 that should drop a magazine <OBJECT>
_itemclass name of the magazine to drop STRING
_ammoammo count (optional).  If not specified a random magazine is chosen <NUMBER>

Returns

true if successful, false otherwise <BOOLEAN>

Examples

_result = [player, "SmokeShell"] call CBA_fnc_dropMagazine

Author

?, commy2

string used by format
Close