WoW:API GetPetActionInfo
Jump to navigation
Jump to search
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.
GetPetActionInfo(petActionButtonId)
- Arguments
- petActionButtonId - the Id for the pet action button you want to query.
- Returns
- name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled
- name
- The name of the action
- subtext
- ?
- texture
- ?
- isToken
- ?
- 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.
- Example
local name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(4);
- Description
- Returns information on the specified pet action.