CBA_fnc_dropWeapon

Description

Drops a weapon (including binocular).

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 weapon <OBJECT>
_itemclass name of the weapon to drop STRING

Returns

true if successful, false otherwise <BOOLEAN>

Examples

_result = [player, primaryWeapon player] call CBA_fnc_dropWeapon

Author

commy2

string used by format
Close