Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
Returns info for an action.
actionType, id, subType = GetActionInfo(slot)
Arguments[]
- slot
- number - Action slot to retrieve information about.
Returns[]
- actionType
- string - Type of action button. (e.g. spell, item, macro, companion, equipmentset, flyout)
- id
- Mixed - Appropriate identifier for the action specified by actionType -- e.g. spell IDs for spells, item IDs for items, equipment set names for equipment sets.
- subType
- Mixed - Additional identifier for the action specified by actionType -- e.g. whether the companion ID is for a MOUNT or a CRITTER companion.
Example[]
local actionType, id, subType = GetActionInfo(1); if ( actionType =="companion" and subType== "MOUNT" ) then print("Button 1 is a mount:", GetSpellLink(id)) end