Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How do i make enemy AI have footstep sound?

So I'm making a horror game and I have my enemy NPC's moving about patrolling the map and when they see the player they will start to chase, I want it so that they have footstep sound and the closer the player is to the enemy the louder the sound gets and the further away the player is the sound is quiet, any help would be great! Thanks in advance!

Product Version: UE 4.13
more ▼

asked Nov 11 '16 at 10:32 AM in Blueprint Scripting

avatar image

91 9 8 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Simply by going to the animation of your AI's walking, navigating to the notify section and when in your animation the character hits his foot on the floor, add a notify (sound one) select the sound to play and done. Watch this. For sound getting louder and louder as they head close. Modify attenuation settings of your sound as per your need.


more ▼

answered Nov 11 '16 at 11:06 AM

avatar image

650 13 13 28

avatar image hazhunt Nov 11 '16 at 11:30 AM

Thanks mate I will give it a go when I get back home, I did try using the notify on footstep but the sound was just playing for all of my npc's so I could here all of them walking even if there no where near me will this tutorial be able to help me get around that, i'm at work at the moment so I can't test it.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

In order for the sound to not be heard everywhere, you need to make sure you turn on attenuation & spatialization for your sound, then you will hear the sound coming from the enemy's location. Radius is the distance from the source where the sound will begin to fade out, and Falloff Distance is the distance from that point that it fades out to zero. Play with these numbers until you get what sounds natural. alt text

attenuation.png (15.8 kB)
more ▼

answered Nov 11 '16 at 11:52 AM

avatar image hazhunt Nov 11 '16 at 12:14 PM

Thanks man I will give it ago when I get back home! Cheers mate

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question