|
Post by Mike on Apr 17, 2016 8:31:31 GMT
Hello,
im trying to create an audio zone where if the player character enters the zone (defined by a collider of a game object) on trigger enter a soundgroup starts to play a rain fall sound, and when the player leaves the zone on trigger exit the soundgroup would fade out.
I got his working by having the trigger enter event play the rain fall sound and the trigger exit event using bus command to fade out the rain fall sound.
But when the player re enters the zone the rain fall sound does not play again, I would like to have the rainfall sound to start again from start.
What would be a best method to achieve this?
Cheers, Mike.
|
|
|
Post by DarkTonic Dev on Apr 17, 2016 17:23:19 GMT
I suspect that it is playing the 2nd time, you just can't hear it (zero volume). Check the Master Audio mixer row for that Sound Group and see if it is playing or not (numeric indicators). Also, you'll probably want to turn on "stop variations / group when fade to zero" checkboxes in the Advanced Settings / Fading setting so it stops when fading to zero.
Please show what script / or Event Sounds code you are using to fade it out.
|
|