CBA_fnc_addWeapon

Description

Add a weapon to a unit.

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
_itemname of the weapon to add

Returns

true on success, false otherwise

Examples

_result = [player, "Binocular"] call CBA_fnc_addWeapon

Author

Close