WoW API: PlaceAction

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API PlaceAction to API PlaceAction without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < PlaceAction

Place the drag-and-drop item as an action.

PlaceAction(actionSlot)

Parameters[edit]

Arguments[edit]

(actionSlot)
actionSlot
Integer - The action slot to place the action into.

Returns[edit]

nil


Details[edit]

If the cursor is empty, nothing happens, otherwise the action from the cursor is placed in the slot. If the slot was empty then the cursor becomes empty, otherwise the action from the slot is picked up and placed onto the cursor.
If an action is placed on the cursor use API_PutItemInBackpack to remove the action from the cursor without placing it in an action slot
IMPORTANT: You can crash your client if you send an invalid slot number.