i know of that trick because when i search for "sleep in lua" a stackoverflow answer suggesting to use OS Commands, even something like Pinging your self or a websocket timeout against an adress that doesnt exist as ways to do this. Really you just need to think of an action you can do in a given environment that lets you control the time it takes directly or indirectly, even a set timeout of 1 second for example would mean you could sleep in steps of 1 second and do something like a for i loop to timeout as many times as you want to sleep in seconds.
View all comments
Show parent comment
1
u/Spacedestructor May 29 '26
i know of that trick because when i search for "sleep in lua" a stackoverflow answer suggesting to use OS Commands, even something like Pinging your self or a websocket timeout against an adress that doesnt exist as ways to do this.
Really you just need to think of an action you can do in a given environment that lets you control the time it takes directly or indirectly, even a set timeout of 1 second for example would mean you could sleep in steps of 1 second and do something like a for i loop to timeout as many times as you want to sleep in seconds.