Navigation
API > API/Runtime > API/Runtime/AIModule
Cooldown decorator node. A decorator node that bases its condition on whether a cooldown timer has expired.
| Name | UBTDecorator_Cooldown |
| Type | class |
| Header File | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Decorators/BTDecorator_Cooldown.h |
| Include Path | #include "BehaviorTree/Decorators/BTDecorator_Cooldown.h" |
Syntax
UCLASS (HideCategories=(Condition), MinimalAPI)
class UBTDecorator_Cooldown : public UBTDecorator
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBTNode → UBTAuxiliaryNode → UBTDecorator → UBTDecorator_Cooldown
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBTDecorator_Cooldown
(
const FObjectInitializer& ObjectInitializer |
BehaviorTree/Decorators/BTDecorator_Cooldown.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CoolDownTime | FValueOrBBKey_Float | Max allowed time for execution of underlying node | BehaviorTree/Decorators/BTDecorator_Cooldown.h |
|
Functions
Public
Overridden from UBTDecorator
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CalculateRawConditionValue
(
UBehaviorTreeComponent& OwnerComp, |
Calculates raw, core value of decorator's condition. Should not include calling IsInversed | BehaviorTree/Decorators/BTDecorator_Cooldown.h |
Overridden from UBTNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void CleanupMemory
(
UBehaviorTreeComponent& OwnerComp, |
Cleanup memory block. CleanupNodeMemory template function is provided to help cleanup the memory. | BehaviorTree/Decorators/BTDecorator_Cooldown.h | |
virtual void DescribeRuntimeValues
(
const UBehaviorTreeComponent& OwnerComp, |
Gathers description of all runtime parameters | BehaviorTree/Decorators/BTDecorator_Cooldown.h | |
virtual uint16 GetInstanceMemorySize() |
Size of instance memory | BehaviorTree/Decorators/BTDecorator_Cooldown.h | |
virtual FName GetNodeIconName() |
Get the name of the icon used to display this node in the editor | BehaviorTree/Decorators/BTDecorator_Cooldown.h | |
virtual FString GetStaticDescription() |
BehaviorTree/Decorators/BTDecorator_Cooldown.h | ||
virtual void InitializeMemory
(
UBehaviorTreeComponent& OwnerComp, |
Initialize memory block. | BehaviorTree/Decorators/BTDecorator_Cooldown.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostLoad() |
BehaviorTree/Decorators/BTDecorator_Cooldown.h |
Protected
Overridden from UBTDecorator
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnNodeDeactivation
(
FBehaviorTreeSearchData& SearchData, |
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 | BehaviorTree/Decorators/BTDecorator_Cooldown.h |
Overridden from UBTAuxiliaryNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void TickNode
(
UBehaviorTreeComponent& OwnerComp, |
Tick function this function should be considered as const (don't modify state of object) if node is not instanced! | BehaviorTree/Decorators/BTDecorator_Cooldown.h |