m
Move page script moved page API DropItemOnUnit to WoW:API DropItemOnUnit without leaving a redirect
No edit summary |
m (Move page script moved page API DropItemOnUnit to WoW:API DropItemOnUnit without leaving a redirect) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Drops an item from the cursor onto the specified target. Can be used to initiate a trade session (though see [[World_of_Warcraft_API#Trading_Functions|Trade functions]]) or feeding pets. | |||
DropItemOnUnit(unit); | |||
==Parameters== | |||
===Arguments=== | |||
:;unit : [[UnitId]] - Unit to which you want to give the item on the cursor. | |||
==Example== | |||
:;unit : | |||
if ( CursorHasItem() ) then | if ( CursorHasItem() ) then | ||
DropItemOnUnit("pet"); | DropItemOnUnit("pet"); | ||
end; | end; | ||
===Result=== | |||
Item is dropped from cursor and given to the player's pet. | |||