Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UGameplayStatics
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void PlayDialogueAtLocation
(
const UObject* WorldContextObject, |
Kismet/GameplayStatics.h | ||
static void PlayDialogueAtLocation
(
const UObject* WorldContextObject, |
Plays a dialogue at the given location. | Kismet/GameplayStatics.h |
|
PlayDialogueAtLocation(const UObject , UDialogueWave , const FDialogueContext &, FVector, float, float, float, USoundAttenuation *)
| Name | PlayDialogueAtLocation |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include Path | #include "Kismet/GameplayStatics.h" |
static void PlayDialogueAtLocation
(
const UObject * WorldContextObject,
UDialogueWave * Dialogue,
const FDialogueContext & Context,
FVector Location,
float VolumeMultiplier,
float PitchMultiplier,
float StartTime,
USoundAttenuation * AttenuationSettings
)
PlayDialogueAtLocation(const UObject , class UDialogueWave , const FDialogueContext &, FVector, FRotator, float, float, float, USoundAttenuation *)
Description
Plays a dialogue at the given location. This is a fire and forget sound and does not travel with any actor. Replication is also not handled at this point.
| Name | PlayDialogueAtLocation |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/GameplayStatics.h |
| Include Path | #include "Kismet/GameplayStatics.h" |
| Source | /Engine/Source/Runtime/Engine/Private/GameplayStatics.cpp |
UFUNCTION (BlueprintCallable, Category="Audio",
Meta=(WorldContext="WorldContextObject", AdvancedDisplay="4", UnsafeDuringActorConstruction="true"))
static void PlayDialogueAtLocation
(
const UObject * WorldContextObject,
class UDialogueWave * Dialogue,
const FDialogueContext & Context,
FVector Location,
FRotator Rotation,
float VolumeMultiplier,
float PitchMultiplier,
float StartTime,
USoundAttenuation * AttenuationSettings
)
Parameters
| Name | Remarks |
|---|---|
| Dialogue | dialogue to play |
| Context | context the dialogue is to play in |
| Location | World position to play dialogue at |
| Rotation | World rotation to play dialogue at |
| VolumeMultiplier | A linear scalar multiplied with the volume, in order to make the sound louder or softer. |
| PitchMultiplier | A linear scalar multiplied with the pitch. |
| StartTime | How far in to the dialogue to begin playback at |
| AttenuationSettings | Override attenuation settings package to play sound with |