Skip to content
Discussion options

You must be logged in to vote

Hiya! If you use await in a mutation function, GDM will automatically pause till it resolves. (Docs reference here)

In your dialogue you'd run something like

do SomeGlobal.waitForInput()

And in the global you'd do

func waitForInput():
   await input.ui_accept

(pseudocode, as I usually use C#)

Though this does bring up a good point that this probably should be something that's implemented more seamlessly as this solution does feel a little hacky.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Bugbert
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