Scene environment & atmosphere
scene_settingsRead or change a Bannerlord scene's environment properties, atmosphere.xml values, level definitions, and editor camera; omit parameters to list current settings.
Instructions
Reads or changes a scene's <environment_properties> (e.g. atmosphere_name, is_indoors, water_level, physics_world_min, gi_data_exists), its atmosphere.xml values (time_of_day, color_grade_name, season, fog_density, sun_altitude, …), its level definitions (base, siege, civilian… — entities join them with scene_edit levels) and the editor camera saved in <editor_data>. Without changes it lists the current values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scene | Yes | Scene name, Module/scene or path. | |
| module | No | Module to look in when the scene name is ambiguous. | |
| add_levels | No | Scene levels to define, e.g. ["siege"]; each gets the next free mask bit. | |
| atmosphere | No | atmosphere.xml value name → value. Values are strings. | |
| environment | No | environment property name → value. Values are strings. | |
| editor_camera | No | Editor camera to save: position, forward (direction; normalized, must not be vertical), elevation, bearing (or the full editor_camera_* names). Values are strings. | |
| remove_levels | No | Scene levels to remove (refused while entities still use them). | |
| copy_editor_camera_from | No | Copy the editor camera fields from another scene (name, Module/scene or path), e.g. a backup that opened correctly. |