Post by phoenix1 on Apr 20, 2014 16:43:27 GMT
I want to be able to have different sounds play based on what the bullet is collidiing with.
Currently, I add a new event sounds script for each type of collision.
bullet hit wall
bullet hit player
etc and this works well, although I am not sure if this is the correct way to handle this scenario?
Also, I have a sound for when the bullet hits a trigger in its own event sounds script.
The console shows that the event fires and cues the sound but I never hear it.
Any idea why I dont hear it?
I was able to succesfully test it from the Master Audio Script and click on the volume icon which plays the clip and I hear it then.
But for some reason during the game the audio clip is not played/heard.
T: 8.3 - MasterAudio Cueing only child of bullet_trigger_test
UnityEngine.Debug:Log(Object)
MasterAudio:LogIfLoggingEnabled(String, String) (at Assets/DarkTonic/MasterAudio/Scripts/Singleton/MasterAudio.cs:3958)
MasterAudio:PlaySoundAtVolume(String, Single, Vector3, Nullable`1, Transform, String, Boolean, Single, Boolean, Boolean, Boolean) (at Assets/DarkTonic/MasterAudio/Scripts/Singleton/MasterAudio.cs:1016)
MasterAudio:PlaySound3DAtTransform(String, Transform, Single, Nullable`1, Single, String, Boolean) (at Assets/DarkTonic/MasterAudio/Scripts/Singleton/MasterAudio.cs:804)
EventSounds:PerformSingleAction(AudioEventGroup, AudioEvent, EventType, Boolean) (at Assets/DarkTonic/MasterAudio/Scripts/Events/EventSounds.cs:360)
EventSounds:PlaySounds(AudioEventGroup, EventType) (at Assets/DarkTonic/MasterAudio/Scripts/Events/EventSounds.cs:323)
EventSounds:OnTriggerEnter(Collider) (at Assets/DarkTonic/MasterAudio/Scripts/Events/EventSounds.cs:238)
Currently, I add a new event sounds script for each type of collision.
bullet hit wall
bullet hit player
etc and this works well, although I am not sure if this is the correct way to handle this scenario?
Also, I have a sound for when the bullet hits a trigger in its own event sounds script.
The console shows that the event fires and cues the sound but I never hear it.
Any idea why I dont hear it?
I was able to succesfully test it from the Master Audio Script and click on the volume icon which plays the clip and I hear it then.
But for some reason during the game the audio clip is not played/heard.
T: 8.3 - MasterAudio Cueing only child of bullet_trigger_test
UnityEngine.Debug:Log(Object)
MasterAudio:LogIfLoggingEnabled(String, String) (at Assets/DarkTonic/MasterAudio/Scripts/Singleton/MasterAudio.cs:3958)
MasterAudio:PlaySoundAtVolume(String, Single, Vector3, Nullable`1, Transform, String, Boolean, Single, Boolean, Boolean, Boolean) (at Assets/DarkTonic/MasterAudio/Scripts/Singleton/MasterAudio.cs:1016)
MasterAudio:PlaySound3DAtTransform(String, Transform, Single, Nullable`1, Single, String, Boolean) (at Assets/DarkTonic/MasterAudio/Scripts/Singleton/MasterAudio.cs:804)
EventSounds:PerformSingleAction(AudioEventGroup, AudioEvent, EventType, Boolean) (at Assets/DarkTonic/MasterAudio/Scripts/Events/EventSounds.cs:360)
EventSounds:PlaySounds(AudioEventGroup, EventType) (at Assets/DarkTonic/MasterAudio/Scripts/Events/EventSounds.cs:323)
EventSounds:OnTriggerEnter(Collider) (at Assets/DarkTonic/MasterAudio/Scripts/Events/EventSounds.cs:238)