Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: killface on April 08, 2009, 06:00:05 pm

Title: Muting music/sound effects
Post by: killface on April 08, 2009, 06:00:05 pm

I'm looking to create a "Tom Hanks at Normandy Beach" moment where a huge cap ship explodes nearby, deafening/stunning the pilot for a short while as a swarm of enemy fighters soar into the debris field and attack.  I have a long, droning "ear-ringing" sound to play as this happens, but I need the music and sound effects to cut out for a short while.  Any good way of getting this done?
Title: Re: Muting music/sound effects
Post by: FreeSpaceFreak on April 09, 2009, 03:48:29 am
I think that play-sound-from-file automatically mutes all other sounds... Not sure though.
Title: Re: Muting music/sound effects
Post by: Ransom on April 09, 2009, 06:13:00 am
It does not, and as far as I know there's no efficient way to achieve this. You can switch the music off and on with change-soundtrack, and if you were really determined weapon sounds could be dealt with by creating silent versions of all weapons the player's going to encounter during the soundless event, then swapping them out with the set-weapon sexps. I don't know if there's any way to silence things like explosions, though.