UnitRemoveItemFromSlot

Parameters
whichUnit unit

Target unit

itemSlot integer

Slot 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 UnitRemoveItem to drop an item by handle.

return type
item
Source code
native UnitRemoveItemFromSlot takes unit whichUnit, integer itemSlot returns item
Source
unit.j
wc3modding.com
UnitRemoveItemFromSlot