delete_actor
Remove one actor from the editor level via the editor's undoable delete path and return its JSON. Use the internal name, not a label; selection is cleared.
Instructions
Remove one actor from the EDITOR level through the editor's own delete path (select + edactDeleteSelected), so it is transacted and undoable, and echo back the deleted actor's JSON. WARNING: two edges that bite: it matches the INTERNAL name only -- unlike set_actor_transform, an editor LABEL will not resolve -- and it clears the current selection as a side effect. It cannot touch PIE actors (editor world only), and the deletion lives in memory until save_level writes the .umap. Use batch_delete_actors for several at once.
Returns: { deleted_actor: actor JSON captured before the delete }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Actor's internal name (GetName), case-insensitive but WHOLE-string. Editor labels are NOT accepted here; resolve one first with find_actors_by_name. |