How could I use this formulae to say that if the player is out of range of the emitter, stop playing the audio file but if he is within the range of the emitter to start playing it?
This way I could place several of these emitters in a level and trigger the area sound dynamically without using lots of resource constantly looping the sound in the background even if it is inaudible.
Here I made this little build for you to hear the proximity based area sounds. I took all the gameplay out all you can do is run around the level. Use arrow keys to move. Press space in the beginning to remove the platform.