UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: vinnyz500 on March 20, 2015, 12:30:17 pm

Title: starting music when you enter an area then killing it when you exit
Post by: vinnyz500 on March 20, 2015, 12:30:17 pm
the wiki has a thing of play sound by triggers but all it says is blablabla which is not very nice :please: so could somebody explain to me how to make a sound start when you are in an area (trigger_multiple?) and kill when you leave it, and is it possible to continue the loop it has even when the player is not in the area so the sound is consistent and does not restart? thanks for the help. Or, is there a way to make the way you play sounds through structs sync up and continue to play rather than stop and restart when you leave the radius and not play consistently through. Thanks!
Title: Re: starting music when you enter an area then killing it when you exit
Post by: Harry Bo21 on March 21, 2015, 07:52:49 am
If you make it a 3d looping sound, you can set it to play on a struct

PlayLoopedSound() instead of the regular play sound

then you should only hear it when you are near it, and it should play on repeat
Title: Re: starting music when you enter an area then killing it when you exit
Post by: vinnyz500 on March 21, 2015, 04:46:57 pm
If you make it a 3d looping sound, you can set it to play on a struct

PlayLoopedSound() instead of the regular play sound

then you should only hear it when you are near it, and it should play on repeat
if I am not mistaken, if I put 2 of em near each other they don't sync up. How would I fix that?
Title: Re: starting music when you enter an area then killing it when you exit
Post by: DidUknowiPwn on March 21, 2015, 05:18:52 pm
if I am not mistaken, if I put 2 of em near each other they don't sync up. How would I fix that?
Play them at the same time?
Title: Re: starting music when you enter an area then killing it when you exit
Post by: Harry Bo21 on March 21, 2015, 07:35:02 pm
Yea you trigger all structs at the same time instantly at the start of the game