Read or move the editor camera
editor_cameraRead or reposition the live Modding Kit viewport camera in Mount & Blade II: Bannerlord; get position and view direction or move/set it while preserving aim.
Instructions
The live viewport camera (needs the bridge): get (position, view direction, pitch and heading of the last rendered frame — also in play mode), set (move the editor camera to a position, keeping its direction), move (by a delta). The engine offers no call to turn the live editor camera: scene_edit action=focus zooms toward an entity keeping the direction, and scene_settings editor_camera sets the saved camera used when the scene is opened.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delta | No | move: offset to add to the camera position. | |
| action | No | Action (default get). | |
| position | No | set: camera position. |