WoW:API GetPetActionInfo: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
({{wowapi}}, formatting) |
||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
Returns information on the specified pet action. | Returns information on the specified pet action. | ||
name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(index); | |||
==Parameters== | |||
===Arguments=== | |||
:; index : Number - The index of the pet action button you want to query. | :; index : Number - The index of the pet action button you want to query. | ||
===Returns=== | |||
:;name : String - The name of the action (or its global ID if isToken is true). | :;name : String - The name of the action (or its global ID if isToken is true). | ||
:;subtext : String - The subtext for the action's tooltip. | :;subtext : String - The subtext for the action's tooltip. | ||
Line 26: | Line 15: | ||
:;autoCastEnabled : Boolean - Returns true if autocast is currently enabled for this ability. | :;autoCastEnabled : Boolean - Returns true if autocast is currently enabled for this ability. | ||
-- | ==Notes== | ||
Information based on a post from Sarf plus some guesswork, so may not be 100% accurate -- [[User:Goldark|Goldark]] 06:01, 17 Dec 2004 (EST) | |||
Revision as of 18:34, 23 December 2006
Returns information on the specified pet action.
name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(index);
Parameters
Arguments
- index
- Number - The index of the pet action button you want to query.
Returns
- 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.
Notes
Information based on a post from Sarf plus some guesswork, so may not be 100% accurate -- Goldark 06:01, 17 Dec 2004 (EST)