UBTDecorator_KeepInCone

Cooldown decorator node.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

AIModule

Header

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

Include

#include "BehaviorTree/Decorators/BTDecorator_KeepInCone.h"

Syntax

class UBTDecorator_KeepInCone : public UBTDecorator

Remarks

Cooldown decorator node. A decorator node that bases its condition on whether the observed position is still inside a cone. The cone's direction is calculated when the node first becomes relevant.

Variables

Name Description

Public variable

uint32: 1

 

bUseSelfAsObserved

Deprecated, set value of Observed on initialization

Public variable

uint32: 1

 

bUseSelfAsOrigin

Deprecated, set value of ConeOrigin on initialization

Public variable

float

 

ConeHalfAngle

Max allowed time for execution of underlying node

Public variable

float

 

ConeHalfAngleDot

Public variable

FBlackboardKeyS...

 

ConeOrigin

Blackboard key selector

Public variable

FBlackboardKeyS...

 

Observed

Blackboard key selector

Constructors

Name Description

Public function

UBTDecorator_KeepInCone

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Protected function Const

bool

 

CalculateCurrentDirection

(
    const UBehaviorTreeComponent& Owne...,
    FVector& Direction
)

Overridden from UBTAuxiliaryNode

Name Description

Protected function Virtual

void

 

OnBecomeRelevant

(
    UBehaviorTreeComponent& OwnerComp,
    uint8* NodeMemory
)

Called when auxiliary node becomes active this function should be considered as const (don't modify state of object) if node is not instanced!

Protected function Virtual

void

 

TickNode

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

Tick function 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()

Public function Virtual

void

 

InitializeFromAsset

(
    UBehaviorTree& Asset
)

Initialize any asset related data

Typedefs

Name

Description

TNodeInstanceMemory

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