wait_until
Wait until a Godot condition is met - play started, game connected, elapsed seconds, or file exists. Returns 'not yet' if not met; call again to poll.
Instructions
Wait for a condition. Blocks the editor at most ~1.5 s per call — longer would stall the editor's own game-launch pipeline and background jobs (they need main-thread frames). If not met yet it answers 'not yet': just call it again. condition = play_started | play_stopped | game_connected | seconds:N | file_exists:res://path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| condition | Yes | ||
| timeout_ms | No |