Hi I’m trying to implement hearing sense for my AI using the AI Perception component. When the player character creates a sound using the ‘Make Noise’ function, the AI registers it when the source location is within it’s hearing range. But I would like to create different types of noises, say like a footstep sound that can be heard only to about 300 units, while an alarm sound could be heard by any unit within 500 units. And specifically, what kind of relation does the ‘Loudness’ setting of a noise have to the distance at which it could be heard? Is it like a linear falloff or some other sort of function?
I’ve tried plotting down the distance vs loudness curve with loudness values between 0.05 and 10 and the curve seems to be representing something similar to the positive quadrant of a normal sideways parabola. But my observation values are not entirely accurate as the distance is calculated my moving the player character. Is it possible if someone from Epic could give out the formula for the same, or atleast confirm whether it’s a parabola or not?