Scripted Sounds?

Post » Wed Oct 19, 2011 7:48 pm

Specifically, I'm trying to play the ''when you die'' little music diddy from a script. I've tried the following:
PlaySound MUSDeath
PlaySound3D MUSDeath
player.PlaySound MUSDeath
player.PlaySound3D MUSDeath

AND I've tried editing MUSDeath so it points to an .OGG file (it points to a seemingly nonexistant .WAV file by default).

I've extracted the file pointed to by MUSDeath and confirmed it's the sound clip I'm looking for.

I've never played any sounds via script before, hence why I'm already out of ideas. Is there an issue with MUSDeath, or file/folder structure that I'm not seeing?

Queue
User avatar
Chris Ellis
 
Posts: 3447
Joined: Thu Jul 26, 2007 10:00 am

Post » Wed Oct 19, 2011 1:52 pm

PlaySound MUSDeath is the command to use, but it's trying to play a missing file. It works fine if you convert the OGG to WAV, although I'm not sure if you'd be able to redistribute that...
User avatar
leigh stewart
 
Posts: 3415
Joined: Mon Oct 23, 2006 8:59 am

Post » Wed Oct 19, 2011 8:24 pm

Yeah, that's no good. =/

Do none of the script functions support .OGG files then?

Queue

P.S. - Thanks for the help with the Pausemanu > StartMenu issue I was having in that mod forum thread!
User avatar
Tinkerbells
 
Posts: 3432
Joined: Sat Jun 24, 2006 10:22 pm


Return to Fallout: New Vegas