|
Post by steeloblk on Jul 10, 2016 5:08:26 GMT
A have train horn warning sounds in my game for approaching trains. The trains are generated randomly in different directions. Is there any way to set it up so the player can only hear one at a time or the closest horn only. My problem occurs when more that one train is generated too close to the previous and you hear too many train horns at once.
thanks
|
|
|
Post by DarkTonic Dev on Jul 10, 2016 6:12:12 GMT
Only one at once: sure, set the Sound Group's "Variation Mode" to "Dialog", which will stop all playing Variations each time a new one plays. Closest only? No, you'd need to code that yourself.
|
|
|
Post by steeloblk on Jul 10, 2016 7:13:38 GMT
Thanks, not quite what I was looking for but you definitely pointed me in the right direction. Using the Variation Mode and Polyphony did the trick.
Cheers.
|
|
|
Post by DarkTonic Dev on Jul 10, 2016 17:01:57 GMT
Yeah that's another way to do it.
|
|