Wowpedia
Advertisement
Wowpedia
240,449
pages
Game Flavors
Links
Patch
Added in 2.0.1 / 1.13.2

Returns information about a specific 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
Advertisement