Jump to content

Using particular player voice lines


Recommended Posts

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

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

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 by LoneRaptor
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...