I am running into a problem in my game engine right now. I want to be able to call Sleep(number_of_seconds) from .lua file (1 only) and halt the execution of the lua file, WHILE the game is running and rendering / updating. When the sleep is done, the .lua file will return execution. Is this possible? All the best, Aldo
p.s.
I guess this can be implemented with C++ <thread>
but I couldn't find a solution for now:/