WoW:API DeleteCursorItem: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API DeleteCursorItem to API DeleteCursorItem without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{wowapi}}
Destroys the item currently held by the cursor.
Destroys the item currently held by the cursor.
DeleteCursorItem();


'''This does not deselect the item, this destroys it.''' Try [[API PutItemInBackpack|PutItemInBackpack]] to deselect the item.
== Details ==
 
* '''This does not deselect the item, this destroys it.''' Use {{api|ClearCursor}} to drop an item from the cursor without destroying it.
No return value.
 
 
----
{{WoW API}}

Latest revision as of 04:45, 15 August 2023

WoW API < DeleteCursorItem

Destroys the item currently held by the cursor.

DeleteCursorItem();

Details[edit]

  • This does not deselect the item, this destroys it. Use ClearCursor to drop an item from the cursor without destroying it.