GetActionInfo
Jump to navigation
Jump to search
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