duplicate_actor
Clone an actor in the current editor level in place, preserving component overrides, and return JSON for both the clone and the original. Undoable; changes selection.
Instructions
Copy one editor-world actor in place through the editor's duplicate path, keeping its component overrides, and return both the new actor's JSON and the original's. Undoable; it changes the editor SELECTION as a side effect. Matches the INTERNAL name only (no editor labels). The clone exists in memory until save_level writes the .umap -- and a save that answers success while git status stays clean means the .umap is read-only (e.g. a Git LFS lockable file you have not locked), not that the duplicate failed.
Returns: { duplicated_actor: actor JSON (its auto-assigned name lives here), original_actor: actor JSON }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor_name | Yes | Actor's internal name (GetName), case-insensitive whole-string. Editor labels are NOT accepted; resolve one with find_actors_by_name first. |