add_smart_object_slot_entrance_annotation
Add an entrance (entry/exit point) annotation to a smart object slot, including navigation and trajectory fields, to define how agents enter or exit the slot.
Instructions
Add an entrance (entry/exit point) annotation to a slot of a USmartObjectDefinition, including its navigation/trajectory fields.
Returns: { definition_path: string, slot_index: int, entrance_count: int, data_count: int, saved: bool }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Optional gameplay tag names identifying the entrance | |
| offset | No | Optional [x, y, z] local-space offset of the entrance | |
| is_exit | No | Optional: entrance can be used to exit the slot (default true) | |
| is_entry | No | Optional: entrance can be used to enter the slot (default true) | |
| rotation | No | PREFERRED: the OBJECT {"roll":R,"pitch":P,"yaw":Y} (any subset, absent axes are 0). The ARRAY form below is [pitch, yaw, roll] -- its index 2 is ROLL, NOT yaw, which once put a PlayerStart on its side. Optional [pitch, yaw, roll] local-space rotation (degrees) | |
| slot_index | No | Index of the slot to add the entrance to | |
| definition_path | Yes | Path to the USmartObjectDefinition asset | |
| selection_priority | No | Optional entrance selection priority: Lowest|Lower|Low|BelowNormal|Normal|AboveNormal|High|Higher|Highest (default Normal). | |
| trace_ground_location | No | Optional: adjust ground location with a line trace (default true). | |
| transition_check_radius | No | Optional radius of the transition trajectory check (default 10). | |
| check_transition_trajectory | No | Optional: check collisions on the transition from nav location to slot (default false). | |
| trajectory_slot_height_offset | No | Optional height offset at the slot for the transition check (default 40). | |
| trajectory_start_height_offset | No | Optional height offset at the start of the transition check (default 80). |