Does anyone know how the "Wait" system action is implemented? Is it like setTimeout() function in JavaScript, where a function is called after a time? Or like a Coroutine from C#, where the execution of a function is paused in a way?
I don’t believe so. Likely the waits are checked after the event sheet runs or something.
Develop games in your browser. Powerful, performant & highly capable.
Internally it doesn't use setTimeout or coroutines, as the event system is complex and it has to do a lot more than meets the eye to implement the wait logic. So really it's a custom implementation I guess.