Skip to content
Discussion options

You must be logged in to vote

Hey @TennoAntenno, thanks for the question.

Unfortunately, right now there's no mechanism in Lua that mimics GDScript's await (it's in the plans, not sure when this will happen though).
I think theoretically you could use a Coroutine and yield when calling the GDScript methods, then resuming the coroutine when the timers end, but this is certainly not ideal and I'm not sure there are sufficient infrastructure for doing this in GDScript (although one could always open the LUA_COROUTINE library and call coroutine.yield() for yielding).

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@gilzoide
Comment options

@TennoAntenno
Comment options

Answer selected by TennoAntenno
Comment options

You must be logged in to vote
3 replies
@TennoAntenno
Comment options

@gilzoide
Comment options

@gilzoide
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants