Creates a new item of type itemId and puts it in unit's inventory. If the inventory is full, it is dropped on the ground at unit's position instead.
itemId
This function works in two steps:
whichUnit
Returns:
Target unit.
Item's raw code identifier.
See: UnitAddItemToSlotById.
UnitAddItemToSlotById
Generated using TypeDoc
Creates a new item of type
itemId
and puts it in unit's inventory. If the inventory is full, it is dropped on the ground at unit's position instead.This function works in two steps:
whichUnit
anditemId
are valid and existReturns: