Proszę.
Code:win.Sleep(czas w ms.)
local mojaFunkcyja()
print('chyba działo')
end
addEvent(mojaFunkcyja, 5 * 1000)
http://www.gamedev.net/community/forums/topic.asp?topic_id=253643 said:Would this be ok?
-- os.clock() returns an approximation of the amount of CPU
-- time used by the program, in seconds
function sleep(seconds)
time = os.clock()
while os.clock()-time < seconds do end
end
-- call sleep to sleep for 200 ms
sleep(0.2)