Act in the running mission
missionInspect and control a live Mount & Blade II play session: check player state and nearby usable objects, walk routes with game AI, teleport, use objects, and dismount riders.
Instructions
In play mode (editor_play) or another running mission (needs the bridge): status (player position, direction, mission state); objects (usable objects near the player — doors, chairs, passages, ladders… — and whether the player can use them); dismount (the editor's test mission spawns a horseman); walk (the player walks a route with the game's own AI movement on the navigation mesh, never teleported, and each leg reports reached / stuck / timed out with the closest approach; the position trace is saved as JSON — evidence that a route can be walked, or where it is blocked); walk_status / walk_stop; teleport (positioning before a test, reported as such — not evidence of a walkable route); use (use an object within reach, the same callback as the interaction key); stop_using.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | use: tag of the usable object's entity. | |
| speed | No | walk: maximum speed limit for the player while walking (default: unchanged). | |
| action | No | Action (default status). | |
| entity | No | use: name of the usable object's entity (or of its parent). | |
| points | No | walk: targets in order, [[x, y, z], …]. | |
| radius | No | objects: search radius in meters (default 10). | |
| position | No | teleport: target; objects: search center (default the player). | |
| direction | No | teleport: direction to face. | |
| tolerance | No | walk: a target counts as reached within this horizontal distance in meters (default 0.5). | |
| trace_file | No | walk/walk_status: where to save the JSON trace (default: Documents/Mount and Blade II Bannerlord/MB2MCP/walk_<id>_<time>.json). | |
| leg_timeout | No | walk: seconds allowed per leg (default 30). | |
| max_distance | No | use: how far the player may be from the object, in meters (default 3). | |
| wait_seconds | No | walk: wait for the result up to this long (default 120; 0 = return at once and poll with walk_status). | |
| allow_mounted | No | walk: test the route on horseback when the player is mounted (default false: dismount first). | |
| stall_seconds | No | walk: a leg fails as 'stuck' after this many seconds without 0.3 m of progress (default 6). | |
| return_to_start | No | walk: afterwards walk the route back to where the player started (default false). |