yield in godot 4

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Shortanel

Hello I’m trying to create a state machine and i use gdquest state machine as an example. The only problem I have, is that their script is on godot 3 and I am on 4. I managed to “translate” i guess the differences so far but i have a hard time with the yield function who became await now.
The ideea is that i what to modify this code:

yield(owner, "ready")

using await.
if you can explain how await works now it would be perfect.
Thank you for reading this.

1 Like
:bust_in_silhouette: Reply From: spaceyjase
await owner.ready

Explained here: GDScript reference — Godot Engine (stable) documentation in English

1 Like