- Home /
I want to trigger a sound once!
I am having some trouble, I want to make a trigger so that when the player walks through it, it will have a x% chance of playing a sound, but only playing the sound once. I have been searching all over and am getting frustrated to see a lot of people putting in codes and afterwards write (untested) so when i test it and it doesn't work it's frustrating and wasting my time. Also a lot of the scripts I have been finding don't even work at all.
Someone please help me, I have been going at this for hours with no luck :/
Answer by DavidDebnar · Nov 17, 2013 at 02:28 PM
Have a look at AudioSource.PlayOneShot.
--David
Your answer

Follow this Question
Related Questions
Need help making an audio trigger. 2 Answers
Explosion Jumpscare Script ? 1 Answer
How to have audio only be heard in a certain radius? 4 Answers
How to get sound to play on barrel Explosion 1 Answer
Object Sound Trigger 1 Answer