register_smart_object_actor
Spawns an editor actor, attaches a Smart Object component using a definition path, and registers it with the Smart Object Subsystem for AI use. Requires a behavior definition or registration fails.
Instructions
Spawn an empty actor in the editor world, attach a USmartObjectComponent pointing at the given definition, and register it with USmartObjectSubsystem. Note: the definition must already have a behavior definition (per-slot or default) or the subsystem silently rejects the handle (see handle_valid).
Returns: { actor_label: string, actor_name: string, definition_path: string, has_component: bool, registered: bool, handle_valid: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | Optional [x, y, z] world location; defaults to (0,0,0) | |
| actor_label | Yes | Editor label for the new actor | |
| definition_path | Yes | Path to the USmartObjectDefinition asset |