wait_until
Waits for a condition like play_started, game_connected, seconds, or file_exists. Returns 'not yet' when unmet, so you can poll again while keeping the editor responsive.
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 |