add_statetree_task
Add a task to a state in a StateTree asset, specifying the task class and optional state identifier and properties.
Instructions
Add a task to a state.
Args: asset_path: Content path to the StateTree asset task_class: Task struct name (e.g. "MassEnemyAttackTask", "MassNavMeshPathFollowTask") or full path state: State index path state_name: State name state_guid: State GUID properties: JSON object for task node properties instance_properties: JSON object for task instance data properties
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | No | ||
| asset_path | Yes | ||
| properties | No | ||
| state_guid | No | ||
| state_name | No | ||
| task_class | Yes | ||
| instance_properties | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |