Navigation
API > API/Runtime > API/Runtime/AIModule
Cooldown task node. Sets a cooldown tag value. Use with cooldown tag decorators to prevent behavior tree execution.
| Name | UBTTask_SetTagCooldown |
| Type | class |
| Header File | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Tasks/BTTask_SetTagCooldown.h |
| Include Path | #include "BehaviorTree/Tasks/BTTask_SetTagCooldown.h" |
Syntax
UCLASS (MinimalAPI)
class UBTTask_SetTagCooldown : public UBTTaskNode
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBTNode → UBTTaskNode → UBTTask_SetTagCooldown
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBTTask_SetTagCooldown
(
const FObjectInitializer& ObjectInitializer |
BehaviorTree/Tasks/BTTask_SetTagCooldown.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bAddToExistingDuration | FValueOrBBKey_Bool | True if we are adding to any existing duration, false if we are setting the duration (potentially invalidating an existing end time). | BehaviorTree/Tasks/BTTask_SetTagCooldown.h |
|
| CooldownDuration | FValueOrBBKey_Float | Value we will add or set to the Cooldown tag when this task runs. | BehaviorTree/Tasks/BTTask_SetTagCooldown.h |
|
| CooldownTag | FGameplayTag | Gameplay tag that will be used for the cooldown. | BehaviorTree/Tasks/BTTask_SetTagCooldown.h |
|
Functions
Public
Overridden from UBTTaskNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual EBTNodeResult::Type ExecuteTask
(
UBehaviorTreeComponent& OwnerComp, |
Starts this task, should return Succeeded, Failed or InProgress (use FinishLatentTask() when returning InProgress) this function should be considered as const (don't modify state of object) if node is not instanced! | BehaviorTree/Tasks/BTTask_SetTagCooldown.h |
Overridden from UBTNode
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FName GetNodeIconName() |
Get the name of the icon used to display this node in the editor | BehaviorTree/Tasks/BTTask_SetTagCooldown.h | |
virtual FString GetStaticDescription() |
BehaviorTree/Tasks/BTTask_SetTagCooldown.h |