Delete/Stop a timer

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

I found this command to create a timer:

yield(get_tree().create_timer(60.0), "timeout")

How can i stop/delete it from outside the if statement where it has beed created?

:bust_in_silhouette: Reply From: Lola

Hello,
From the docs: The timer will be automatically freed after its time elapses.
As for stopping it manually, it seems SceneTreeTimer does not allow it, you have to use a Timer node instead.