Custom Subtitled Dialogue and Sound
If your heist or mod needs custom dialogue that includes subtitles follow the following steps.
Add your Sounds, for this example I will add sounds to a level for a custom map.
Set up the Dialogue Script Data, this will add the dialogue to the dialogue element in editor.
In the Main.xml file add this to your levels script data:
In your Scriptdata folder in the Project add 2 txt files: ('new_dialogue' can be renamed to anything you wish)
index.dialogue_index:
new_dialogue.dialogue:
From there your Dialogue should be added to the game!
Additional Notes!
If you want your sound to play in 3D space (from a speaker or character) make sure its a mono-sound.
If you instead want your sound to play as if in the players ears (like Bain dialogue) make sure its in stereo-sound.
Make sure you localise your subtitles or players will see 'ERROR:text' ingame.