MoveNPCToRoom()
Move NPC to a Different Room
Change an NPC's room assignment and arrival position or spawn.
| Option key / field | Meaning and input | Default |
|---|---|---|
| Character characterId | Choose a Character Designer ID; player is a runtime alias where supported. | Blank |
| Room sceneId | Choose a scene ID. | Blank |
| Spawn (optional) spawnId | Choose an arrival spawn in the destination scene. May be blank. | Blank |
| XYZ when no spawn position | Destination/placement coordinates as [X, Y, Z]. | [0.0, 0.0, 0.0] |
Timing. Waits for the runtime routine to return; no further completion wait is promised by this schema.
await MoveNPCToRoom({"characterId": "player", "sceneId": "lab", "spawnId": ""})In use. Send Elias to the archive after the puzzle. This is a world-state change rather than visible walking between rooms. Confirm that the destination has the intended spawn and that a scene does not already contain a conflicting copy of the NPC.
