DropItemOnUnit
Jump to navigation
Jump to search
![]() |
This function was deprecated in patch 10.2.6 and might be removed in patch 11.0.2 or later. |
Drops an item from the cursor onto a unit, i.e. to initiate a trade.
DropItemOnUnit(unit)
Parameters
Arguments
- unit
- string : UnitId - Unit to which you want to give the item on the cursor.
Example
if ( CursorHasItem() ) then DropItemOnUnit("pet"); end;
Result
Item is dropped from cursor and given to the player's pet.