WoW:API GetPetActionCooldown: Difference between revisions

m
Categorization and formatting
No edit summary
 
m (Categorization and formatting)
Line 3: Line 3:
Returns cooldown information for the pet action in the specified pet action bar slot.
Returns cooldown information for the pet action in the specified pet action bar slot.


   local start, duration, enable = GetPetActionCooldown(petActionButtonId);
   startTime, duration, enable = GetPetActionCooldown(index);


----
----
;''Arguments''
;''Arguments''


: petActionButtonId - the Id for the pet action button you want to query for cooldown info.
: (index)
:; index : Number - The index of the pet action button you want to query for cooldown info.


----
----
;''Returns''
;''Returns''


:(Number startTime, Number duration, Number enable)
:(startTime, duration, enable)


:;startTime : The time when the cooldown started (as returned by [[API GetTime|GetTime()]]) or zero if no cooldown
:;startTime : Number - The time when the cooldown started (as returned by [[API GetTime|GetTime()]]) or zero if no cooldown
:;duration : The number of seconds the cooldown will last, or zero if no cooldown
:;duration : Number - The number of seconds the cooldown will last, or zero if no cooldown
:;enable : 0 if no cooldown, 1 if cooldown is in effect (probably)
:;enable : Boolean - 0 if no cooldown, 1 if cooldown is in effect (probably)


----
----
Line 34: Line 35:
----
----
{{Template:WoW API}}
{{Template:WoW API}}
[[Category:API Pet Functions|GetPetActionCooldown]]
Anonymous user