Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/BehaviorTree > API/Runtime/AIModule/BehaviorTree/Tasks
Inheritance Hierarchy
- UObject
- IGameplayTaskOwnerInterface
- UBTNode
- UBTTaskNode
- UBTTask_PlaySound
References
| Module | AIModule |
| Header | /Engine/Source/Runtime/AIModule/Classes/BehaviorTree/Tasks/BTTask_PlaySound.h |
| Include | #include "BehaviorTree/Tasks/BTTask_PlaySound.h" |
Syntax
UCLASS (MinimalAPI)
class UBTTask_PlaySound : public UBTTaskNode
Remarks
Play Sound task node. Plays the specified sound when executed.
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< USoundCue > | SoundToPlay | CUE to play |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UBTTask_PlaySound
(
const FObjectInitializer& ObjectInitializer |
Overridden from UBTTaskNode
| Type | Name | Description | |
|---|---|---|---|
| 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! |
Overridden from UBTNode
| Type | Name | Description | |
|---|---|---|---|
| FName | Get the name of the icon used to display this node in the editor | ||
| FString |