Uses an action
See also Action functions.
Signature:
UseAction(slot [, "target" [, "button"]])
Arguments:
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 buttonButton5- Fifth mouse buttonLeftButton- 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