Page 1 of 1

trigger_multiple sound

Posted: July 26th, 2008, 6:56 pm
by Soviet
Is there any way to make a trigger_multiple where while someone is touching a looping sound is playing (for them only), and when they aren't touching it it doesn't play?

Re: trigger_multiple sound

Posted: July 26th, 2008, 9:18 pm
by Drofder2004
Just use playlocalsound and stoplocalsound.

Re: trigger_multiple sound

Posted: July 26th, 2008, 9:53 pm
by Soviet
k, I'll try and figure out how to set it up.

Re: trigger_multiple sound

Posted: July 27th, 2008, 1:20 pm
by Drofder2004
The things you will be looking to use are:

while(player isTouching(trigger))
{
//play sound
}
//stop sound

Re: trigger_multiple sound

Posted: July 27th, 2008, 8:53 pm
by Soviet
k, sorry for being such a noob, I just haven't scripted in over a year, and now I need it for stuff I'm working on.

Re: trigger_multiple sound

Posted: July 27th, 2008, 10:06 pm
by Pedsdude
What map's this for?

Re: trigger_multiple sound

Posted: July 27th, 2008, 10:14 pm
by Soviet
none of your business :P