add_statetree_transition
Add a transition to a StateTree asset, defining state changes based on triggers like OnStateCompleted or OnEvent with configurable priority and delay.
Instructions
Add a transition to a state.
Args: asset_path: Content path to the StateTree asset trigger: "OnStateCompleted", "OnStateFailed", "OnStateSucceeded", "OnTick", "OnEvent" state: Source state index path state_name: Source state name state_guid: Source state GUID target_state: Target state index path, or special: "TreeSucceeded", "TreeFailed", "TreeStopped", "NextSibling" target_state_name: Target state name target_state_guid: Target state GUID priority: "Low", "Normal", "Medium", "High", "Critical" delay: Delay in seconds before transitioning delay_variance: Random variance (+/-) on delay event_tag: Gameplay tag for OnEvent trigger
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| delay | No | ||
| state | No | ||
| trigger | Yes | ||
| priority | No | Normal | |
| event_tag | No | ||
| asset_path | Yes | ||
| state_guid | No | ||
| state_name | No | ||
| target_state | No | ||
| delay_variance | No | ||
| target_state_guid | No | ||
| target_state_name | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |