create_trigger
Creates a TriggerBox or TriggerSphere at a specified world location in Unreal Engine, returning the spawned actor's name and path.
Instructions
Creates a trigger actor (TriggerBox or TriggerSphere) at a specified location. These two shapes only -- for a brush-based ATriggerVolume use create_volume(volume_type="TriggerVolume") or spawn_box_volume instead.
Returns: { trigger_name, trigger_type, actor_name, actor_path, success }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| location | No | World [x, y, z] location to spawn the trigger (default 0,0,0) | |
| trigger_name | Yes | Name label for the trigger actor | |
| trigger_type | No | Trigger class: "TriggerBox" (default) or "TriggerSphere". "TriggerVolume" is deliberately REJECTED here -- ATriggerVolume derives from AVolume/ABrush and needs a real UModel brush built for it, so spawning it through this path would hand you a success-shaped actor with no real collision; use create_volume(volume_type="TriggerVolume"), which builds that brush. |