Originally Posted by Nodos7
Could you please add the example of code? Will it work in WoW Classic?
|
There are several ways of using this function.
C_Timer.After(duration, callback)
duration is in seconds
Code:
C_Timer.After(1, function () SendChatMessage("I need help!") end)
C_Timer.After(2, function () SendChatMessage("Somebody, help!") end)
C_Timer.After(3, function () SendChatMessage("Too late I'm dead!") end)
or
Code:
local function doSomething()
SendChatMessage("The world says, hello")
end
C_Timer.After(1, doSomething)