Checking if audio PlayClipatPoint already playing?

Is there a way to check if an audio using PlayClipatPoint is already playing and if not play that clip?

You would not actually be checking if the audio is playing at point, would just check if its playing. Once this is done you could then playclipatpoint.

Here is a helpful thread on checking the audio playing in unity script. Use the isPlaying inside an if condition

http://answers.unity3d.com/questions/159714/check-any-audio-isplaying.html

basically

if (! audio.isPlaying) {
PlayClipAtPoint (audio, position);
}

@surreal4224 AudioClip does not have “isPlaying”

It’s good to know that any questions we ask today will still be answered one hundred years from now by developers in flying self driving cars.

It does, however, have a “length” property that you could use to create a custom timer! When the time is up, the sound has finished playing.