r/GLua • u/CrazCrypri • Nov 01 '20
wait() in GLua.
Dumb question but how do you do wait() in GLua?
2
Upvotes
r/GLua • u/CrazCrypri • Nov 01 '20
Dumb question but how do you do wait() in GLua?
2
u/[deleted] Nov 01 '20
Easiest way is to use the timer library: https://wiki.facepunch.com/gmod/timer
1
u/Karutoh Nov 01 '20 edited Nov 01 '20
Using the timer library would be a much better approach as you would not be stopping the main thread just to execute some tasks. Because its synchrounouse, execution of it will be much more efficient but less accurate. All depending of course, how well performed your machine is. It shouldn't be much.