Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
WoW:API GetActionCooldown
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{wowapi}} __NOTOC__ Retrieves the [[cooldown]] data of the action specified. start, duration, enable = GetActionCooldown(slot) == Parameters == <big>'''Arguments'''</big> :;slot : Integer - The [[ActionSlot|action slot]] to retrieve data from. <big>'''Returns'''</big> :start, duration, enable :;start : Number - The time at which the current cooldown period began (relative to the result of [[API GetTime|GetTime]]), or 0 if the cooldown is not active or not applicable. :;duration : Number - The duration of the current cooldown period in seconds, or 0 if the cooldown is not active or not applicable. :;enable : Number - Indicate if cooldown is enabled, is greater than 0 if a cooldown is active, and 0 if a cooldown cannot be active. This lets you know when a shapeshifting form has ended and the actual countdown has started. == Example == <!-- begin code --> local start, duration, enable = GetActionCooldown(slot); if ( start == 0 ) then -- do stuff when cooldown is not active else -- do stuff when cooldown is under effect end <!-- end code -->
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Apinav
(
edit
)
Template:Editlink
(
edit
)
Template:Tocright
(
edit
)
Template:Wowapi
(
edit
)