In my game there are enemies that perceive the player within a “Hearing Range Area” and other variables.
At the moment if between me and the enemy there is a solid big wall and a few meters, the enemy perceives my footsteps sounds and everything else that makes noise.
I was wondering if just using the default attenuation/Listener/Occlusion options inside an audio component (as showed in the picture) I can bond these values with the enemy perception’s values. Is possible?
Ex.: As before, I am far away few meters from the enemy, but between me and him there is a wall. Normally, the enemy could perceive me, but the fact that there is a wall between us reduce the volume of my footsteps and then the listener (the enemy) can’t perceive me.
Thanks in advance!