Fandom

WoWWiki

API GetPetActionCooldown

104,635pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

WoW API < GetPetActionCooldown

Returns cooldown information for the pet action in the specified pet action bar slot.

startTime, duration, enable = GetPetActionCooldown(index);

ParametersEdit

ArgumentsEdit

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

ReturnsEdit

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

Also on Fandom

Random Wiki