WoW:API GetPetActionInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API GetPetActionInfo to API GetPetActionInfo without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<center>'''GetPetActionInfo''' </center>
{{wowapi}} __NOTOC__
 
''NB: Info based on a post from Sarf plus some guesswork, so may not be 100% accurate -- [[User:Goldark|Goldark]] 06:01, 17 Dec 2004 (EST)''
 
Returns information on the specified pet action.
Returns information on the specified pet action.
name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(index);


  name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(index)
==Parameters==
 
===Arguments===
----
;''Arguments''
 
: (index)
:; 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===
----
;''Returns''
 
:;name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled
 
:;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.
:;texture : String - The name (or its global ID, if isToken is true) of the texture for the action.
:;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 (<small>guess -- [[User:Flickering|Flickering]] 15:12, 28 Dec 2004 (EST)</small>)
:;isToken : Boolean - Indicates if the action is a reference to a global action, or not (<small>guess</small>)
:;isActive : Boolean - Returns true if the ability is currently active.
:;isActive : Boolean - Returns true if the ability is currently active.
:;autoCastAllowed : Boolean - Returns true if this ability can use autocast.
:;autoCastAllowed : Boolean - Returns true if this ability can use autocast.
:;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==
;''Example''
Information based on a post from Sarf plus some guesswork, so may not be 100% accurate
  local name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(4);
 
----
;''Description''
 
: Returns information on the specified pet action.
 
 
----
{{WoW API}}

Latest revision as of 04:46, 15 August 2023

WoW API < GetPetActionInfo

Returns information on the specified pet action.

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

Parameters[edit]

Arguments[edit]

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

Returns[edit]

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.

Notes[edit]

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