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
return type
boolean
Source code
native UnitAddItem takes unit whichUnit, item whichItem returns boolean
Source
unit.j
wc3modding.com
UnitAddItem