Question by
ethanhberkey · Dec 21, 2015 at 04:28 PM ·
scripting problemsoundoncollisionentersound effects
Make gunshot audio continue to play even when projectile is deleted onCollion
I have a gun that fires projectile rigidbodys that is set to delete on collision with anything, so i added audio (gunshot) to the projectile and made is Play On Awake so when it would spawn it would play the audio, i thought this was a great idea because the weapon shoots automatic, but when you fire it plays the sound only until it is deleted by an on Collision impact with anything (the reason for this being i dont want the "bullet" to bounce around until it is deleted), so once it is deleted, so is the audio. is there anyway that i can continue playing the audio even thought it gets deleted? is there a script that can get around this? (I am almost clueless about scripting but i am good at copy and pasting). Thank you for any help.
Comment