wait_until
Wait for a condition like play start, stop, connection, elapsed seconds, or file existence. Returns 'not yet' if unmet, allowing repeated checks without stalling the editor.
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 |