Lore archive · Warcraft Wiki, 2023 dump
API Cooldown SetCooldownUNIX
Last wiki revision 2019-07-02
Shows a cooldown animation on a cooldown frame using UNIX time. obj:SetCooldownUNIX(start, duration[, modRate])
- start: Number - The time when the cooldown started in UNIX time (as returned by time). Zero if no cooldown.
- duration: Number - Cooldown duration in seconds. Zero if no cooldown.
- modRate : Number - The rate at which the animation should be updated.
- Calling this method will automatically show/hide the Cooldown widget. The widget, unless the animation is reversed, will also hide itself automatically when the animation completes.
- As this function uses UNIX time, which updates in seconds, the cooldown will do the same. Compared to the smooth transition of Cooldown:SetCooldown, Cooldown:SetCooldownUNIX will cause the cooldown the jump forward every second.
Source
https://warcraft.wiki.gg/wiki/API_Cooldown_SetCooldownUNIX · 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.