Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 

WoWInterface » Developer Discussions » Lua/XML Help » Delay function


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off