remove_transition_condition
Delete one condition by index from a StateTree state transition and save the asset. Out-of-range condition index removes nothing and returns removed false.
Instructions
Remove one condition, by index, from a transition of a StateTree state and save the asset. An out-of-range transition_index is an error; an out-of-range condition_index removes nothing and still succeeds, with removed false. Returns removed, remaining and saved.
Returns: { tree_path, state_name, transition_index, condition_index, removed, remaining, saved, note }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_path | Yes | Asset path of the StateTree, e.g. "/Game/AI/ST_Guard". | |
| state_name | Yes | Name of the state that owns the transition; the command fails without it. | |
| condition_index | Yes | 0-based index into the Conditions of that transition. | |
| transition_index | Yes | 0-based index into the state transitions, as listed by list_transitions. |