Lore archive · Warcraft Wiki, 2023 dump
API GetActionCooldown
Last wiki revision 2022-08-01
Returns cooldown info for the specified action slot. start, duration, enable, modRate = GetActionCooldown(slot)
- slot: - The action slot to retrieve data from.
- start: - The time at which the current cooldown period began (relative to the result of GetTime), or 0 if the cooldown is not active or not applicable.
- duration: - The duration of the current cooldown period in seconds, or 0 if the cooldown is not active or not applicable.
- enable: - Indicate if cooldown is enabled, is greater than 0 if a cooldown could be 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.
- modRate: - The rate at which the cooldown widget's animation should be updated.
local start, duration, enable, modRate = GetActionCooldown(slot); if ( start == 0 ) then -- do stuff when cooldown is not active else -- do stuff when cooldown is under effect end
Source
https://warcraft.wiki.gg/wiki/API_GetActionCooldown · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.