UBTDecorator_Cooldown::OnNodeDeactivation

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

Choose your operating system:

Windows

macOS

Linux

Override Hierarchy

UBTDecorator::OnNodeDeactivation()

UBTDecorator_Cooldown::OnNodeDeactivation()

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Decorators/BTDecorator_Cooldown.h

Include

#include "BehaviorTree/Decorators/BTDecorator_Cooldown.h"

Source

/Engine/Source/Runtime/AIModule/Private/BehaviorTree/Decorators/BTDecorator_Cooldown.cpp

Syntax

virtual void OnNodeDeactivation
(
    FBehaviorTreeSearchData & SearchData,
    EBTNodeResult::Type NodeResult
)

Remarks

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