WoW API < GetActionCooldown

Retrieves the cooldown data of the action specified.

start, duration, enable = GetActionCooldown(slot)

Parameters Edit


Integer - The action slot to retrieve data from.


start, duration, enable
Number - 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.
Number - The duration of the current cooldown period in seconds, or 0 if the cooldown is not active or not applicable.
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 Edit

local start, duration, enable = GetActionCooldown(slot);
if ( start == 0 ) then
	-- do stuff when cooldown is not active
	-- do stuff when cooldown is under effect

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.