Player of [BehaviorTree] resources.
BTPlayer node is used for the instantiation and playback of [BehaviorTree] resources at runtime. During instantiation, the behavior tree instance is initialized with a reference to the agent and the [member blackboard]. Agent is the owner of the BTPlayer node (see [member Node.owner]).
For an introduction to behavior trees, see [BehaviorTree].
Returns the behavior tree's last execution status. See [enum BT.Status].
Resets the behavior tree's execution. Each running task will be aborted and the next tree execution will start anew. This method does not reset [Blackboard].
Executes the root task of the behavior tree instance if [member active] is [code]true[/code]. Call this method when [member update_mode] is set to [constant MANUAL]. When [member update_mode] is not [constant MANUAL], the [method update] will be called automatically. See [enum UpdateMode].
If [code]true[/code], the behavior tree will be executed during update.
[BehaviorTree] resource to instantiate and execute at runtime.
Holds data shared by the behavior tree tasks. See [Blackboard].
Stores and manages variables that will be used in constructing new [Blackboard] instances.
If [code]true[/code], adds a performance monitor to "Debugger->Monitors" for each instance of this [BTPlayer] node.
If [code]true[/code], any [NodePath] variables in the [Blackboard] are replaced with [Node] references when the tree is instantiated. References are retrieved by calling [method Node.get_node] on the agent instance (agent is the owner of the BTPlayer node).
Determines when the behavior tree is executed. See [enum UpdateMode].
Emitted when the behavior tree has finished executing and returned [code]SUCCESS[/code] or [code]FAILURE[/code].
Argument [param p_status] holds the status returned by the behavior tree. See [enum BT.Status].
Emitted when BTPlayer has finished the behavior tree update.
Argument [param p_status] holds the status returned by the behavior tree. See [enum BT.Status].
Execute behavior tree during the idle process.
Execute behavior tree during the physics process.
Behavior tree is executed manually by calling [method update].