UBTTask_PawnActionBase

Base class for managing pawn actions

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

AIModule

Header

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

Include

#include "BehaviorTree/Tasks/BTTask_PawnActionBase.h"

Syntax

class UBTTask_PawnActionBase : public UBTTaskNode

Remarks

Base class for managing pawn actions

Task will set itself as action observer before pushing it to AI Controller, override OnActionEvent if you need any special event handling.

Please use result returned by PushAction for ExecuteTask function.

Constructors

Name Description

Public function

UBTTask_PawnActionBase

(
    const FObjectInitializer& ObjectIn...
)

Functions

Name Description

Public function Static

EPawnActionT...

 

ActionEventHandler

(
    UBTTaskNode* TaskNode,
    UPawnAction& Action,
    EPawnActionEventType::Type Event
)

Helper functions, should be used when behavior tree task deals with pawn actions, but can't derive from this class

Protected function Virtual

void

 

OnActionEvent

(
    UPawnAction& Action,
    EPawnActionEventType::Type Event
)

Action observer, updates state of task

Protected function Virtual

void

 

OnActionLost

(
    UPawnAction& Action
)

Called when action is removed from stack (FinishedAborting) by some external event default behavior: finish task as failed

Protected function

EBTNodeResul...

 

PushAction

(
    UBehaviorTreeComponent& OwnerComp,
    UPawnAction& Action
)

Starts executing pawn action

Overridden from UBTTaskNode

Name Description

Public function Virtual

EBTNodeResul...

 

AbortTask

(
    UBehaviorTreeComponent& OwnerComp,
    uint8* NodeMemory
)

Aborts this task, should return Aborted or InProgress (use FinishLatentAbort() when returning InProgress) this function should be considered as const (don't modify state of object) if node is not instanced!

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