How to have enemy listen for Audio produced from player?

hi all,

I’m making a sound based project for a Uni protoype and i need a way for an enemy to be able to “hear” the noises that the player is making. Somewhat like the ping sonar of a submarine.

Does anyone have a trick to be able to do this, or perhaps an alternate method?

I was thinking of instantiating invisible spheres and having them expand in all directions. If they collide with an object then to initiate a script.

Is there a better way than this?

Thanks

Yes whenever you make a noise, do a distance check for enemies. If (dist < soundRange) then perform the required actions. Invisible spheres is going to be a bit random for you.

Ah, awesome. Thats the exact type of thing i was looking for.