UnitDropItemSlot

Parameters
whichUnit unit

Target unit.

whichItem item

Handle to item instance.

slot integer

Move 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

return type
boolean
Source code
native          UnitDropItemSlot        takes unit whichUnit, item whichItem, integer slot returns boolean
Source
common.j
wc3modding.com
UnitDropItemSlot