trigger_multiple sound
Moderator: Core Staff
-
- Core Staff
- Posts: 7762
- Joined: April 23rd, 2005, 9:12 pm
trigger_multiple sound
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?
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: trigger_multiple sound
Just use playlocalsound and stoplocalsound.

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
-
- Core Staff
- Posts: 7762
- Joined: April 23rd, 2005, 9:12 pm
Re: trigger_multiple sound
k, I'll try and figure out how to set it up.
-
- Core Staff
- Posts: 13315
- Joined: April 13th, 2005, 8:22 pm
- Location: UK, London
Re: trigger_multiple sound
The things you will be looking to use are:
while(player isTouching(trigger))
{
//play sound
}
//stop sound
while(player isTouching(trigger))
{
//play sound
}
//stop sound

Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010
-
- Core Staff
- Posts: 7762
- Joined: April 23rd, 2005, 9:12 pm
Re: trigger_multiple sound
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.
-
- Site Admin
- Posts: 15914
- Joined: October 15th, 2004, 7:18 pm
- Location: UK
-
- Core Staff
- Posts: 7762
- Joined: April 23rd, 2005, 9:12 pm
Re: trigger_multiple sound
none of your business 
