WoW:API GetPetActionInfo

Revision as of 11:01, 17 December 2004 by WoWWiki>Goldark (Added info based on Sarf's post on cosmosui forum)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.

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.

Template:WoW API