Determine if an action is currently flashing red. (For instance, Auto Attack or Auto Shoot is active)
isFlashing = IsCurrentAction(actionSlot)
Parameters[]
Arguments
- actionSlot
- Numeric - The action slot to test.
Returns[]
- isFlashing
- Flag - nil if the specified slot is not flashing or is empty. 1 if the slot is flashing red and an automatic action is currently active
Example[]
If you have added the Auto Attack action to the action bar, on for instance slot 42, then you can make a macro that starts your auto attack if it is not already started. This, unlike just clicking the Auto Attack action, does not turn off Auto Attack if it is already active
/script if not IsCurrentAction(42) then UseAction(42) end;