Jump to content
Toggle menu
  • 17.3K articles
  • 8.2K files
  • 5 users
  • 280.7K edits
WoW Classic Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

API GetPetActionInfo

From WoW Classic Wiki
GetPetActionInfo

NB: Info based on a post from Sarf plus some guesswork, so may not be 100% accurate -- Goldark 06:01, 17 Dec 2004 (EST)

Returns information on the specified pet action.

 name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(index)

Arguments
(index)
index
Number - The index of the pet action button you want to query.

Returns
name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled
name
String - The name of the action (or its global ID if isToken is true).
subtext
String - The subtext for the action's tooltip.
texture
String - The name (or its global ID, if isToken is true) of the texture for the action.
isToken
Boolean - Indicates if the action is a reference to a global action, or not (guess -- Flickering 15:12, 28 Dec 2004 (EST))
isActive
Boolean - Returns true if the ability is currently active.
autoCastAllowed
Boolean - Returns true if this ability can use autocast.
autoCastEnabled
Boolean - Returns true if autocast is currently enabled for this ability.

Example
 local name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(4); 

Description
Returns information on the specified pet action.



Template:WoW API