I need some help using this os.Time thing
#2
[lua]
function waitFor(time)
local waittime = os.time()
while os.time() - waittime < time do
sleep(0.001)
end end
[/lua]

And then whenever you need to wait a bit, instead of sleep(10) use waitFor(10).
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)