UnitAddItem
- Parameters
-
whichUnit unit
Target unit.
whichItem item
Handle to item instance.
- comment
-
Puts specific item in target unit's inventory.
Returns:
- true if this exact item is already in unit's inventory or if it was put there successfully
- false if unit has no inventory or space, or invalid item/unit
- patch
-
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
-
boolean
- Source code
-
native UnitAddItem takes unit whichUnit, item whichItem returns boolean