add_state_tree_global_task
Attach a global task node to a UStateTree by struct name, making it run for the tree's entire lifetime.
Instructions
Attach a global task node (by struct name, via reflection) to a UStateTree; global tasks run for the whole tree's lifetime.
Returns: { tree_path, task_struct, global_task_count, added, saved }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tree_path | Yes | Asset path to the UStateTree | |
| task_struct | Yes | Task struct name or /Script path; must derive from StateTreeTaskBase (e.g. "StateTreeDebugTextTask") |