I found a tutorial on YouTube on building a Dialog System for NPCs in my Unreal Engine Project. It works great, but all it delivers is Text. I would like Audio to play along with the Text. I’ve search the internet for information on how to add Audio to a dialog system and I could not find a single resource on how to accomplish this. Audio for a dialog system seems like a common enough feature that I would expect information on how to do this would be fairly common, but here we are.
I constructed this Dialog Widget, here is the Event Graph:
This is the behavior tree:
The PlaySound about fails and gets skipped over.
This is my Speak Task:
I believe I need to add some type of Audio Variable then execute a Play Sound 2D at some point. I tried several variations but I’m confused on what the correct way to approach this is. Is there a way to play a Sound Cue via the Widget, should I be playing a Sound locally to the NPC, or are there other options? Ultimately, I think I need to get a PlaySound from the behavior tree to trigger as a variable somewhere along the interaction. Any tips, suggestions, or guidance would be appreciated.
The original tutorial: Unreal Engine 4 - Dialog System Tutorial (1/3) - YouTube
Thank you for reading all of this.