unreal.BTTask_RunStateTree

class unreal.BTTask_RunStateTree(outer: Object | None = None, name: Name | str = 'None')

Bases: BTTaskNode

RunStateTree task allows the execution of state tree with the StateTreeAIComponentSchema inside a behavior tree.

C++ Source:

  • Plugin: GameplayStateTree

  • Module: GameplayStateTreeModule

  • File: BTTask_RunStateTree.h

Editor Properties: (see get_editor_property/set_editor_property)

  • ignore_restart_self (bool): [Read-Write] if set, task search will be discarded when this task is selected to execute but is already running

  • interval (float): [Read-Write] Interval between state tree update.

  • node_name (str): [Read-Write] node name

  • random_deviation (float): [Read-Write] Random deviation on the interval between each state tree update.

  • state_tree_ref (StateTreeReference): [Read-Write] State tree that will be run when the task is selected.