CBA_fnc_addWeapon

Description

Add a weapon to a unit.  Unit has to be local.

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 unit <OBJECT>
_itemname of the weapon to add STRING
_verifyif true, then put item on the ground if it can’t be added <BOOLEAN>

Returns

true on success, false otherwise <BOOLEAN>

Examples

_result = [player, "Binocular"] call CBA_fnc_addWeapon

Author

string used by format
Close