set_tree_parameter
Set the value of an existing StateTree root parameter and save it. Supports bool, byte, int32, int64, float, double, name, string, and text types.
Instructions
Set the value of an existing root parameter of a StateTree asset and save it. Works for bool, byte, int32, int64, float, double, name, string and text parameters; array and other types return an error. Add the parameter first with add_tree_parameter. Returns value_changed, new_value and saved.
Returns: { tree_path, parameter, set, value_changed, saved, new_value? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | New value as JSON matching the parameter type: true or false, a number, or a string for name, string and text parameters. | |
| parameter | Yes | Name of a root parameter that already exists, as listed by list_tree_parameters; an unknown name is an error. | |
| tree_path | Yes | Asset path of the StateTree, e.g. "/Game/AI/ST_Guard". |