WoW:API GetPetActionInfo: Difference between revisions

{{wowapi}}, formatting
No edit summary
({{wowapi}}, formatting)
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.
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==
;''Example''
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)
  local name, subtext, texture, isToken, isActive, autoCastAllowed, autoCastEnabled = GetPetActionInfo(4);
 
----
;''Description''
 
: Returns information on the specified pet action.
 
 
----
{{WoW API}}