UBTTask_Wait

Wait task node. Wait for the specified time when executed.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

AIModule

Header

/Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Tasks/BTTask_Wait.h

Include

#include "BehaviorTree/Tasks/BTTask_Wait.h"

Syntax

class UBTTask_Wait : public UBTTaskNode

Remarks

Wait task node. Wait for the specified time when executed.

Variables

Name Description

Public variable

float

 

RandomDeviation

Allows adding random time to wait time

Public variable

float

 

WaitTime

Wait time in seconds

Constructors

Name Description

Public function

UBTTask_Wait

(
    const FObjectInitializer& ObjectIn...
)

Overridden from UBTTaskNode

Name Description

Public function Virtual

EBTNodeResul...

 

ExecuteTask

(
    UBehaviorTreeComponent& OwnerComp,
    uint8* NodeMemory
)

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!

Protected function Virtual

void

 

TickTask

(
    UBehaviorTreeComponent& OwnerComp,
    uint8* NodeMemory,
    float DeltaSeconds
)

Ticks this task this function should be considered as const (don't modify state of object) if node is not instanced!

Overridden from UBTNode

Name Description

Public function Virtual Const

void

 

DescribeRuntimeValues

(
    const UBehaviorTreeComponent& Owne...,
    uint8* NodeMemory,
    EBTDescriptionVerbosity::Type Verbo...,
    TArray< FString >& Values
)

Gathers description of all runtime parameters

Public function Virtual Const

uint16

 

GetInstanceMemorySize()

Size of instance memory

Public function Virtual Const

FName

 

GetNodeIconName()

Get the name of the icon used to display this node in the editor

Public function Virtual Const

FString

 

GetStaticDescription()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss