A Sound Question

Post » Sun May 16, 2010 11:17 pm

Hello all,

So I am using two sounds. AMBREnclaveZAXRoomVoicesA02 and AMBREnclaveZAXRoomVoicesC01 and I wish for them to play randomly so as not to play on top of each other and to increase the creepy factor in my mod. The problem is that 1. they are not set to loop 2. I checked the play at random box when I edit them and 3. even with 1. and 2. they do not do what I want. They loop infinitely AND they do not play at random but instead play on top of each other. I am unfamiliar with the sound system in the GECK for the most part. Any advice?

Thanks,
Doing
User avatar
Sammie LM
 
Posts: 3424
Joined: Thu Nov 30, 2006 1:59 pm

Post » Sun May 16, 2010 11:53 pm

Funny, the Geck wiki says nothing about Play At Random, but the TES wiki says that feature is unsupported. It seems like ticking that has caused the two sounds to loop. You might want to untick that flag and set the sounds back to their vanilla settings and then write a short script for your cell. You can put the script on any object in the cell and have it look something like this:

SCN MyCreepySoundsScriptShort RandomFloat TimerBegin GameMode  If Timer > 0 	Set Timer to Timer - GetSecondsPassed  Else	Set Random to GetRandomPercent	If Random > 49	  Playsound AMBREnclaveZAXRoomVoicesC01	Else	  Playsound AMBREnclaveZAXRoomVoicesC02	Endif	Set Timer to 1 + GetrandomPercent * 4 / 99End

That should play either sound randomly ever 1 to 5 seconds. If you want to change the random time interval, just change the "4" to some other number, but not 0.
User avatar
Kelly Upshall
 
Posts: 3475
Joined: Sat Oct 28, 2006 6:26 pm

Post » Sun May 16, 2010 7:39 pm

Funny, the Geck wiki says nothing about Play At Random, but the TES wiki says that feature is unsupported. It seems like ticking that has caused the two sounds to loop. You might want to untick that flag and set the sounds back to their vanilla settings and then write a short script for your cell. You can put the script on any object in the cell and have it look something like this:

SCN MyCreepySoundsScriptShort RandomFloat TimerBegin GameMode  If Timer > 0 	Set Timer to Timer - GetSecondsPassed  Else	Set Random to GetRandomPercent	If Random > 49	  Playsound AMBREnclaveZAXRoomVoicesC01	Else	  Playsound AMBREnclaveZAXRoomVoicesC02	Endif	Set Timer to 1 + GetrandomPercent * 4 / 99End

That should play either sound randomly ever 1 to 5 seconds. If you want to change the random time interval, just change the "4" to some other number, but not 0.


aha! that would explain it then. Thank you kindly for your efforts and help :) much appreciated!

Doing
User avatar
Devin Sluis
 
Posts: 3389
Joined: Wed Oct 24, 2007 4:22 am


Return to Fallout 3