Fandom

WoWWiki

API GetPetActionInfo

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetPetActionInfo

Returns information on the specified pet action.

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

ParametersEdit

ArgumentsEdit

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

ReturnsEdit

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)
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.

NotesEdit

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

Also on Fandom

Random Wiki