x

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"

AI Pawn does not hear noise

Hi there! I`m trying to make a system that moves AI to the source of noise, when he hears it. I ran into a problem: AI does not hear the noise the actor makes. I set up the Pawn Sensing in such a way that the source entered the radius of noise trapping, and added the component Pawn Noise Emitter to the actor, but for some reason the event OnHearNoise does not happen. What could be the problem?

Product Version: UE 4.19
Tags:
ghoqk0dltwm.jpg (158.3 kB)
ds2wniw1mes.jpg (165.7 kB)
fssqxhxi3n0.jpg (162.4 kB)
more ▼

asked Apr 24 '18 at 08:25 AM in Blueprint Scripting

avatar image

Darman16
1 1 2 4

avatar image MrMcKvarz Apr 24 '18 at 12:08 PM

It can be that it detects only enemies sounds and the actor that emitting noise is not one. Try setting perception to react to neutrals and friends.

avatar image Darman16 Apr 24 '18 at 03:03 PM

alt text Just make as you said, but it really doen`t help.

screenshot.jpg (262.9 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Okey, the solution was simple: use node "Report Noise Event" with AIPerception component.

more ▼

answered Apr 24 '18 at 09:31 PM

avatar image

Darman16
1 1 2 4

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

Pawn Noise Emitter must emit noise - this is not permanent, you have to code it, for example, make noise on foot step, shoot etc.

more ▼

answered Apr 24 '18 at 02:03 PM

avatar image

Vaheva
1.3k 24 29 52

avatar image Darman16 Apr 24 '18 at 02:37 PM

I already do this in my Door Actor: there is an event that play a sound, move a door by timeline and make a noise. You can see a part of logic with Pawn Noise Emitter on the second attached image.

(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