Dialogue contains a bunch of functions to help you use dialogue in any way you need.
Adjusts the player's position in one-on-one dialogues.

Get Speaker Head Location
Returns the location of the actor's head, where the dialogue camera will aim.

Name | Type | Description |
---|
Actor | AActor* | The actor whose head location is being retrieved. |
Output
Name | Type | Description |
---|
- | FVector | The location of the actor's head. |
Tick Dialogue
Called every tick to update the dialogue.

Name | Type | Description |
---|
DeltaTime | float | The time elapsed since the last frame. |
Link Speaker Avatar
Links a speaker ID to its avatar in the world.

Name | Type | Description |
---|
Info | FSpeakerInfo | The speaker information. |
Output
Name | Type | Description |
---|
- | AActor* | The linked speaker avatar. |
Destroy Speaker Avatar
Removes a speaker avatar from the world.

Name | Type | Description |
---|
Info | FSpeakerInfo | The speaker information. |
SpeakerAvatar | AActor* | The speaker avatar to destroy. |
Play Dialogue Animation
Plays a dialogue animation on the given speaker.

Name | Type | Description |
---|
Node | UDialogueNode* | The dialogue node. |
Line | FDialogueLine | The dialogue line being spoken. |
Speaker | AActor* | The speaker's avatar. |
Listener | AActor* | The listener's avatar. |
Stop Dialogue Animation
Stops any currently playing dialogue animations.

Play Dialogue Sound
Plays a dialogue sound.

Name | Type | Description |
---|
Line | FDialogueLine | The dialogue line being spoken. |
Speaker | AActor* | The speaker's avatar. |
Listener | AActor* | The listener's avatar. |
Play Dialogue Node
Plays a dialogue node with audio, animations, and camera updates.

Name | Type | Description |
---|
Node | UDialogueNode* | The dialogue node. |
Line | FDialogueLine | The dialogue line being spoken. |
Speaker | FSpeakerInfo | The speaker information. |
SpeakerActor | AActor* | The speaker's avatar. |
ListenerActor | AActor* | The listener's avatar. |
Finish Dialogue Node
Stops the dialogue node, ending any playing audio or animations.

Name | Type | Description |
---|
Node | UDialogueNode* | The dialogue node. |
Line | FDialogueLine | The dialogue line being spoken. |
Speaker | FSpeakerInfo | The speaker information. |
SpeakerActor | AActor* | The speaker's avatar. |
ListenerActor | AActor* | The listener's avatar. |
Play NPC Dialogue
Plays an NPC's dialogue with audio, animations, and cinematic shots.

Name | Type | Description |
---|
NPCReply | UDialogueNode_NPC* | The NPC's dialogue node. |
Line | FDialogueLine | The dialogue line being spoken. |
Speaker | FSpeakerInfo | The speaker information. |
Play Player Dialogue
Plays the player's dialogue with audio, animations, and cinematic shots.

Name | Type | Description |
---|
PlayerReply | UDialogueNode_Player* | The player's dialogue node. |
Line | FDialogueLine | The dialogue line being spoken. |
Get Line Duration
Returns how long the dialogue system should wait before moving to the next line.

Name | Type | Description |
---|
Node | UDialogueNode* | The dialogue node. |
Line | FDialogueLine | The dialogue line being spoken. |
Output
Name | Type | Description |
---|
- | float | The duration of the line in seconds. |
Get String Variable
Resolves a variable name within a dialogue line.

Name | Type | Description |
---|
Node | UDialogueNode* | The dialogue node. |
Line | FDialogueLine | The dialogue line being spoken. |
VariableName | FString | The name of the variable to resolve. |
Output
Name | Type | Description |
---|
- | FString | The resolved string value. |