remove_state_enter_condition
Remove a StateTree state's enter condition by index and save the asset; returns whether it was removed, remaining conditions, and save status. Out-of-range indexes remove nothing but still succeed.
Instructions
Remove one enter condition, by index, from a state of a StateTree asset and save the asset. An out-of-range index removes nothing and still succeeds, with removed false and a note. Returns removed, remaining and saved; for transition conditions use remove_transition_condition.
Returns: { tree_path, state_name, 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 condition; the command fails without it. | |
| condition_index | Yes | 0-based index into the state EnterConditions, as listed by list_conditions. |