CBA_fnc_addItem

Description

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

Returns

true on success, false otherwise <BOOLEAN>

Examples

_result = [player, "Binocular"] call CBA_fnc_addItem

Author

string used by format
Close