Increase Volume The Closer You get

I have a player and a “Killer” player. I spawn a heartbeat sound on the player and am trying to increase to volume multiplier the closer he is to the killer. I got it working, but in the opposite way I need. The closer the player is to the killer, the lower the volume is and the further away the player is, the louder the volume is.

Just do 1 minuse the divided number and you’ll invert the ratio to make it louder with closeness.

An alternative to all this logic is to simply put a looping audio component on the monster and give it Attenuation. However if there are multiple monsters this will give you multiple heartbeat sounds and you probably dont want that