Thread: Delay function
View Single Post
02-26-11, 07:34 AM   #1
Platine
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 72
Delay function

How to make a proper function of the delay?

function My_Delay(sec)
local My_currentTime=GetTime();
while ( My_currentTime+sec>GetTime() ) do
-- wait a 'sec' time
end
end

My_Delay(5) - Wow sleep on 5 sec., and are not supported any action
  Reply With Quote