UnitDropItemTarget
- Parameters
whichUnit unitTarget unit.
whichItem itemHandle to item instance.
target widgetTarget unit or widget.
- comment
Issues an immediate order for the
whichUnitto go totarget(usually another unit) and give the item to target. If the target has no inventory slots/full inventory, the item is dropped at target's feet.If the
whichUnitcannot reach the target, it will run up to closest location and stop there, without giving the item. If the target is a running unit,whichUnitwill follow it to give the item.Returns:
- true if item was found in inventory of
whichUnitand an order was issued. - false if
whichUnit/item/widget invalid,whichUnitis paused and cannot take orders etc. Target widget can be a paused unit and will receive the item.
- true if item was found in inventory of
- note
See:
UnitDropItemSlot,UnitDropItemPoint.- patch
1.17a
- Source
- common.j (suggest an edit or discuss on Github)
- return type
boolean- Source code
native UnitDropItemTarget takes unit whichUnit, item whichItem, widget target returns boolean