wait_until
Pause execution until a condition is met, such as play start/stop, game connection, or file existence. Returns 'not yet' if condition not satisfied, requiring repeated calls.
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 |