Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetActionInfo

Last wiki revision 2022-07-22

Returns info for an action. actionType, id, subType = GetActionInfo(slot)

  • slot: - Action slot to retrieve information about.
  • actionType: - 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.

local actionType, id, subType = GetActionInfo(1); if ( actionType =="companion" and subType== "MOUNT" ) then print("Button 1 is a mount:", GetSpellLink(id)) end

Source

https://warcraft.wiki.gg/wiki/API_GetActionInfo · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.