UBTTask_PlaySound

Play Sound task node. Plays the specified sound when executed.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

AIModule

Header

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

Include

#include "BehaviorTree/Tasks/BTTask_PlaySound.h"

Syntax

class UBTTask_PlaySound : public UBTTaskNode

Remarks

Play Sound task node. Plays the specified sound when executed.

Variables

Name Description

Public variable

TObjectPtr< USo...

 

SoundToPlay

CUE to play

Constructors

Name Description

Public function

UBTTask_PlaySound

(
    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!

Overridden from UBTNode

Name Description

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