Navigation
API > API/Runtime > API/Runtime/AIModule
Play Sound task node. Plays the specified sound when executed.
| Name | UBTTask_PlaySound |
| Type | class |
| Header File | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Tasks/BTTask_PlaySound.h |
| Include Path | #include "BehaviorTree/Tasks/BTTask_PlaySound.h" |
Syntax
UCLASS (MinimalAPI)
class UBTTask_PlaySound : public UBTTaskNode
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UBTNode → UBTTaskNode → UBTTask_PlaySound
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UBTTask_PlaySound
(
const FObjectInitializer& ObjectInitializer |
BehaviorTree/Tasks/BTTask_PlaySound.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| SoundToPlay | FValueOrBBKey_Object | CUE to play | BehaviorTree/Tasks/BTTask_PlaySound.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_PlaySound.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_PlaySound.h | |
virtual FString GetStaticDescription() |
BehaviorTree/Tasks/BTTask_PlaySound.h |