How to Have A.I with sound

Background:
I have roaming AI characters around the map, searching for the player in the dark, they have their own flashlights to mark their path (so does the player) they move around fine.

Problem:
I want to have the AI make sounds or noise. as in they speak/growl/stomp etc; and the more the player is closer to the ai, the louder the sound is, while farther away, of course. how do you make this happen.

Similar to:
Most horror games, such as outlast. When the ‘monster’ makes a noise, you can either hear it coming to or away from the player

I have Tried:
to make the ‘audio’ component attached to the ai (much like the spotlight)

SideNote: very similar problem, how to add a event play attach to the ai (Example: if the monster touches the player, the player ‘dies’ or lose the game

Hi mate I had this problem for about a week, I was at work with some spare time and I was just thinking about how to do it, it finally clicked add a audio component to the enemy, then add a sound that you want in the details panel on the right, then click on Override Attenuation on the right and then you can move the radius to what ever suits you that how I did it, hope that helps, to answer the side note question the way I would do it is add a box trigger to the enemy in the components tab, then add a blueprint saying something like on player collision restart game or play animation if you have made one so the enemy animates an attacking animation target to player then something like kill player or player death it depends how you have set up your blueprints on the enemies and the players blueprint, hope that helps mate.

Ayy thanks. Works like you said.

no worries mate!

You could also set the attenuation on the soundcue itself if you didn’t want to do the settings in the blueprint. This is helpful if you are using the sound in multiple blueprints. By setting it on the soundcue, you would only need to set it once.

Somebody care to go into some friggin detail here?! There are literally zero tutorials on how to add audio to the AI like random sounds generated as they patrol etc…