Browse Source

Update gdscript.rst

Juan Linietsky 9 years ago
parent
commit
324b42da24
1 changed files with 2 additions and 0 deletions
  1. 2 0
      reference/gdscript.rst

+ 2 - 0
reference/gdscript.rst

@@ -1142,6 +1142,8 @@ signal is received, execution will recommence. Here are some examples:
     # Resume execution when animation is done playing:
     yield( get_node("AnimationPlayer"), "finished" )
 
+   # Wait 5 seconds, then resume execution (Godot 2.2+)
+    yield( get_tree().create_timer(5.0), "timeout" )
 
 Onready keyword
 ~~~~~~~~~~~~~~~