set_current_level
Choose which loaded, visible sub-level is current before spawning or pasting actors, so they land in the intended streaming level instead of the active one.
Instructions
Choose which sub-level of the editor world is CURRENT, i.e. where newly spawned or pasted actors will land. Set it before spawn_actor / paste_actors when a map is split into streaming sub-levels, otherwise everything piles into whichever level happens to be active. Errors honestly if the named streaming level is not loaded/visible; already_current:true when it was already the one. Use move_actors_to_level to relocate actors that ended up in the wrong one.
Returns: { current_level: string, changed: bool, already_current: bool, success: true } -- current_level is the level current after the call; a level that is not found, or not loaded and visible, is an error instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level_name | Yes | "persistent" for the persistent level, or the SHORT name of a loaded, visible streaming sub-level (not a /Game path). |