class unreal.BTTaskNode(outer=None, name='None')

Bases: unreal.BTNode

Task are leaf nodes of behavior tree, which perform actual actions

Because some of them can be instanced for specific AI, following virtual functions are not marked as const:
  • ExecuteTask

  • AbortTask

  • TickTask

  • OnMessage

If your node is not being instanced (default behavior), DO NOT change any properties of object within those functions! Template nodes are shared across all behavior tree components using the same tree asset and must store their runtime properties in provided NodeMemory block (allocation size determined by GetInstanceMemorySize() )

C++ Source:

  • Module: AIModule

  • File: BTTaskNode.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

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