UnitDropItemSlot
- Parameters
whichUnit unitTarget unit.
whichItem itemHandle to item instance.
slot integerMove to this slot.
- comment
Moves an item inside unit's inventory to specified slot. If this slot contains an item, their positions are swapped.
This is the same as if you'd right-click an item in game to move it to a different slot.
Returns:
- true if the move was successful, even if moving an item to its current slot (no change)
- false if unit/item invalid, item not in inventory, invalid item slot specified
- patch
1.17a
- Source
- common.j (suggest an edit or discuss on Github)
- return type
boolean- Source code
native UnitDropItemSlot takes unit whichUnit, item whichItem, integer slot returns boolean