Lore archive · Warcraft Wiki, 2023 dump
API GetShapeshiftFormCooldown
Last wiki revision 2022-07-21
Returns cooldown information for a specified form. startTime, duration, isActive = GetShapeshiftFormCooldown(index)
- index: - Index of the desired form
- startTime: - Cooldown start time (per ) in seconds.
- duration: - Cooldown duration in seconds.
- isActive: - Returns 1 if the cooldown is running, nil if it isn't
Displays the seconds remaining on the shapeshift form at index 1 or "Not Active" if there's no cooldown on that form local startTime, duration, isActive = GetShapeshiftFormCooldown(1) if isActive then print("Not Active") else print(string.format("Form 1 has %f seconds remaining", startTime + duration - GetTime)) end
Source
https://warcraft.wiki.gg/wiki/API_GetShapeshiftFormCooldown · 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.