Page 1 of 1

Randomspeaker??? scripting a sound...

Posted: Tue May 20, 2003 3:23 am
by Hashmark13
ok i have 2 questions first one is.. how do i use random speaker(right click>sound>randomspeaker).. im geussing that if you had a recording of water dripping you could have several random speakers set up around where you want it to be heard... but how do you script this and stuff???

and for 2nd question.. this is probably easy one :oops: but uhh.. how do you just add a line in your script so that you can have a triggered sound... like lets say you go up to a switch that you want to make a alarm go off in MP???

Posted: Tue May 20, 2003 12:21 pm
by panTera
this question has been asked before (do a search first) but... I know it can be a real pain to get those sh?tty sounds to work. You'd rather use a script_model than a randomspeaker.

Here's two links to recently posted topics about this problem:
setting up custom sounds (&read my post)
setting up custom sounds with trigger (&read my post)

NOTE: these describe a way to get custom sounds to work by useing a Tiki-file with your new sound alias. For standard sounds, look at the ubersound.scr and see which aliases have been cached and have at least "dm obj" in the line. Then all you do is place a script_model (as described in those posts) with the right keys and values, and add a thread to your script.

"make some no??Ooise!"

Posted: Tue May 20, 2003 5:02 pm
by Hashmark13
thanks... i done a search... but um... i found alot of junk unrelated to what i was looking for :P

Dripping

Posted: Tue May 20, 2003 5:50 pm
by tltrude
There is no dripping sound in the game. So, if that is what you are looking for, you will have to find a wav file on the internet and add it to the game as pantera said.

It is hard to tell you about triggers, if you don't say what it is for.

Posted: Tue May 20, 2003 6:40 pm
by Hashmark13
im geussing that if you had a recording of water dripping
Had-past tense form of have

Have-as in the ownership of something

i never said there was one. :P lol im just bored :(

Posted: Wed May 21, 2003 2:08 pm
by bdbodger
I used the random speaker in a couple of maps and I think what it does it play random german voices . A bit funny if there is no one there . All I did was put it in a map no scripting . As for the alarm sounding when you use a switch just make a trigger_use to not only do the switch animation but also to play the sound . For your trigger_use give it a key:setthread Value: alarmsound then make a thread to play the sound and do the switch animation if you have an animated swithch or the alarm model . Or you can maybe use the global/alarmer.scr for that . You can read at the top of the spript how to use it . If you want an on and off mode for the sound you can use loopsound ?? alias ?? and then stoploopsound when you want it to stop .