I am trying to figure out yielding and it isn't working how I expected it to and I cannot figure out what I'm doing wrong.
I have a function in the main game node that is called on a specific signal. If the conditions are met I want it to wait until an animation is finished and then continue with the function.
I tried to use (browse is the animation node)
yield($browse, "animation_finished")
which didn't work.
So I wanted to experiment further and while
yield(get_tree().create_timer(1.8), "timeout")
works, when I made an actual Timer called Yielder as a child of the main node, set it to 1 second and tried to call it
yield(get_node("Yielder"), "timeout")
it didn't continue the code from which I'm yielding.
I have no clue if it's something completely different in my code but I'm very confused rn...