start: GetTime() -- cooldown starts immediatelly (SetCooldown() uses your computer's uptime as 'now', not 0. Computer's Uptime is in ms and you can get it from GetTime().) GetTime()+4 -- cooldown will start after 4 seconds GetTime()-5 -- cooldown is in progress (if duration is 10 then it starts cd animation in the middle, as 5 seconds from 10sec cooldown already elapsed) duration: duration of your cooldown in seconds (number) Cooldown:SetCooldown(GetTime()-x*z, y*z) or Cooldown:SetCooldown(GetTime()-(x/y)*z, z)
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
dbkwik:wowwiki/pro...iPageUsesTemplate | |
abstract |
|