Uses an action

See also Action functions.


UseAction(slot [, "target" [, "button"]])


  • slot - An action bar slot (number, actionID)
  • target - A unit to be used as target for the action (string, unitID)
  • button - Mouse button used to activate the action (string)
    • Button4 - Fourth mouse button
    • Button5 - Fifth mouse button
    • LeftButton - Left mouse button (also used when the action is activated via keyboard)
    • MiddleButton - Third mouse button (typically middle button / scroll wheel)
    • RightButton - Right mouse button
This function is protected and can only be called by the Blizzard user interface