Play the scene from the editor
editor_playStart or stop the Modding Kit editor's test mission for the open or named saved scene, wait for player spawn or editor return, and report status or missions.
Instructions
Play mode of the Modding Kit editor (needs the bridge). start plays the open scene with the editor's test mission — the same managed entry the editor's Play button reaches; the player spawns at spawnpoint_player_test or spawnpoint_player — and waits until the player is there. It loads the scene's SAVED file: save first (start refuses when changes made through this server are newer than the file). stop returns to the editor exactly like the leave key does in play mode, and waits for it. status / missions report. While playing, live scene_* commands are refused (they act on the edited scene); use mission, navmesh_query and editor_command screenshot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | No | start: play another saved scene of the loaded modules by name instead of the open one (the editor keeps its scene). | |
| action | No | Action (default status). | |
| levels | No | start: scene levels for the mission, e.g. 'siege' or 'civilian' (default none). | |
| mission | No | start: the editor mission (default the first one listed by action=missions). | |
| wait_seconds | No | start/stop: wait until the player is spawned / the editor is back (default 120 / 30; 0 = return at once). | |
| allow_unsaved | No | start: play although changes made through this server since the last save are not in the file (default false). |