WoW:API GetPetActionCooldown: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
({{wowapi}}, format, -example) |
||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
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. | ||
startTime, duration, enable = GetPetActionCooldown(index); | |||
==Parameters== | |||
===Arguments=== | |||
:; index : Number - The index of the pet action button you want to query for cooldown info. | :; index : Number - The index of the pet action button you want to query for cooldown info. | ||
===Returns=== | |||
:;startTime : Number - 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 : Number - 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 : Boolean - 0 if no cooldown, 1 if cooldown is in effect (probably) | :;enable : Boolean - 0 if no cooldown, 1 if cooldown is in effect (probably) | ||
Revision as of 18:37, 23 December 2006
← WoW API < GetPetActionCooldown
Returns cooldown information for the pet action in the specified pet action bar slot.
startTime, duration, enable = GetPetActionCooldown(index);
Parameters
Arguments
- index
- Number - The index of the pet action button you want to query for cooldown info.
Returns
- 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)