When calling an event sheet function from a script, is it possible to await for the function to finish and return a value?
Otherwise, is there any way to wait for an event sheet function to finish? e.g. using runtime.addEventListener
Develop games in your browser. Powerful, performant & highly capable.
If the function doesn't contain any "Wait" actions, it will return the value immediately. If there are waits, you need to set the function as "asynchronous". Although I never tried this with functions which return values.