UnitRemoveItemFromSlot
- Parameters
whichUnit unitTarget unit.
itemSlot integerSlot number (zero-based, i.e. 0 to 5).
- comment
If an item exists in the given slot, it is removed from the inventory and dropped at unit's position.
Returns the handle of dropped item when successful. Returns null on failure (no item, invalid slot/unit).
- note
See
UnitRemoveItemto drop an item by handle.- patch
1.00
- Source
- common.j (suggest an edit or discuss on Github)
- return type
item- Source code
native UnitRemoveItemFromSlot takes unit whichUnit, integer itemSlot returns item