unreal.BTTaskNode
¶
- class unreal.BTTaskNode(outer: Optional[Object] = None, name: Union[Name, str] = 'None')¶
Bases:
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] Ignore Restart Self: if set, task search will be discarded when this task is selected to execute but is already runningnode_name
(str): [Read-Write] Node Name: node name