HundredTai Posted August 13, 2017 Share Posted August 13, 2017 Hello, For a project I want to use certain voice lines of the player character. In the current case it would be the sounds both the male and female player make when they get hurt. I want to trigger these from a script.However these don't fall under the sound type and it appears the VoiceType class doesn't have any functions I can use. I found out that some dialogue for small talk and soundeffects is found in GenericDialogue quests and the like, but I can't find any for taking damage. Here my question kinda splits in two:1) Where can I find the sound files for the player character getting hurt and how do I call this from a papyrus script?2) The generic dialogues found in certain quest forms. Can I access these through script and make a call to a single voice line? If it comes down to extracting the Fallout archive and pick out the seperate sound files like that, so be it. But I'd reckon there's a way to do it in-editor. With kind regards,Tai Link to comment Share on other sites More sharing options...
JonathanOstrus Posted August 13, 2017 Share Posted August 13, 2017 The sounds you're referring to are on dialogue topics I believe. So to do what you want you'd need to extract the files from the ba2 and then make a sound object that you could then play back using that audio file. I haven't played with sound much but you might be able to use the Say() or SayCustom() method from ObjectReference to do what you want too. Though that might be a bit more random than you're looking for. Link to comment Share on other sites More sharing options...
LoneRaptor Posted August 14, 2017 Share Posted August 14, 2017 (edited) The way I would try to do this is by using the FO4 VFR Tool by greebtea101 which allows you to search trough all the voice files and extract individual ones. Then in the CK you can create the sound descriptor using the voice file you extracted. in a script you can then play that file using the Play() function. Edited August 14, 2017 by LoneRaptor Link to comment Share on other sites More sharing options...
HundredTai Posted August 18, 2017 Author Share Posted August 18, 2017 Awesome, those were some of the functions I was looking for. Eventually it's probably easier and more precise to just extract the neccessary voice files.Thanks for the help. Link to comment Share on other sites More sharing options...
Thuggysmurf Posted August 18, 2017 Share Posted August 18, 2017 1) You can also try Lazy Voice Finder to quickly filter, find, and extract the lines you want by type:http://www.nexusmods.com/fallout4/mods/24309/? 2) Yes, but the script is probably going to need to reference the voice files you extract rather than referencing the originals. Link to comment Share on other sites More sharing options...
Recommended Posts