• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Funkcja podobna do sleep w lua

legolas23

New Member
Joined
Jan 8, 2009
Messages
537
Reaction score
3
Tak jak w temacie ,poszukuje funkcji i podobnym dzialaniu jak sleep() w C++ dzialajacej w skryptach lua na ots :P
 
@Slawkens:
Oh, my fault, sorry :(

@Topic:
Found this @ Google

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)

@Edit:
lol, to Polish Board >_>
 
Back
Top