Cooldown:SetLossOfControlCooldown
Jump to navigation
Jump to search
![]() |
This is no longer a part of the World of Warcraft API.
|
Shows a loss-of-control cooldown animation.
Cooldown:SetLossOfControlCooldown(startTime, duration)
Arguments
- startTime
- Number - the time when the cooldown started (as returned by GetTime).
- duration
- Number - duration of the cooldown effect in seconds.
Example
Create Frame and Cooldown (See Cooldown:SetCooldown for details)
local f = CreateFrame("Frame") f:SetSize(64, 64) f:SetPoint("CENTER") f:SetBackdrop({bgFile = "Interface\\Icons\\Trade_Engineering"}) local cd = CreateFrame("Cooldown") cd:SetAllPoints(f)
Display a 2-second cooldown animation
cd:SetLossOfControlCooldown(GetTime(), 2)
See also
Patch history
Patch 5.1.0 (2012-11-27): Added.