Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetPetActionInfo

Last wiki revision 2023-05-21

Returns info for an action on the pet action bar. name, texture, isToken, isActive, autoCastAllowed, autoCastEnabled, spellID, checksRange, inRange = GetPetActionInfo(index)

  • index: - The index of the pet action button you want to query.
  • name: - The name of the action (or its global ID if isToken is true).
  • texture: - The name (or its global ID, if isToken is true) of the texture for the action.
  • isToken: - Indicates if the action is a reference to a global action, or not ( guess )
  • isActive: - Returns true if the ability is currently active.
  • autoCastAllowed: - Returns true if this ability can use autocast.
  • autoCastEnabled: - Returns true if autocast is currently enabled for this ability.
  • spellID: - Returns the spell ID associated with this ability.
  • checksRange: - Returns true if this ability has a numeric range requirement.
  • inRange: - Returns true if this ability is currently in range.

Information based on a post from Sarf plus some guesswork, so may not be 100% accurate

Source

https://warcraft.wiki.gg/wiki/API_GetPetActionInfo · 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.