UBTTaskNode::OnTaskFinished

Called when task execution is finished this function should be considered as const (don't modify state of object) if node is not instanced! bNotifyTaskFinished must be set to true for this function to be called Calling INIT_TASK_NODE_NOTIFY_FLAGS in the constructor of the task will set this flag automatically

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/BehaviorTree/BTTaskNode.h

Include

#include "BehaviorTree/BTTaskNode.h"

Source

/Engine/Source/Runtime/AIModule/Private/BehaviorTree/BTTaskNode.cpp

Syntax

virtual void OnTaskFinished
(
    UBehaviorTreeComponent & OwnerComp,
    uint8 * NodeMemory,
    EBTNodeResult::Type TaskResult
)

Remarks

Called when task execution is finished this function should be considered as const (don't modify state of object) if node is not instanced! bNotifyTaskFinished must be set to true for this function to be called Calling INIT_TASK_NODE_NOTIFY_FLAGS in the constructor of the task will set this flag automatically