wait_for_pie_completion
Blocks until a human stops Play-in-Editor or the timeout elapses, then reports completion status and elapsed seconds; useful for handing a piloted session to a person.
Instructions
Block until the human closes Play-in-Editor (or the timeout fires), pumping the game thread while it polls, and report elapsed_seconds + whether it completed or timed out. Use it to hand the session to a human for a piloted run and get control back when they hit Stop; use is_play_in_editor_active for an instant, non-blocking check. Returns immediately with started_in_pie:false when PIE was not running.
Returns: { started_in_pie, still_active, timed_out, elapsed_seconds, completed }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timeout_seconds | No | Optional float (default 30). Upper bound on the wait; 0 or less means wait indefinitely. | |
| poll_interval_seconds | No | Optional float (default 0.1). Seconds between IsInPlayInEditor probes; anything below 0.01 is floored to 0.01. |