AI Perception - can't get hearing to trigger

I’m in the middle of swapping over from pawn sensing to AI perception, and I can’t seem to get the hearing to ever trigger OnPerceptionUpdated.

I’ve set up the AIPerception settings like so: Screenshot - 5cc9a94e4d464f5f779269668500f5ee - Gyazo

So I’ve added the AI Hearing config into the sense list, which has worked fine for the sight, but I can’t seem to trigger the hearing event. I’ve currently tried using ‘Pawn Make Noise’ or just ‘Make Noise’ but neither appear to actually trigger the perception update.

I have registered the perception on the pawn making the noise, so I’m unsure what I’m doing wrong here. Any help would be much appreciated!

I was able to get this working in 4.8 today. I had to do 2 additional steps on top of your steps:

  • I can’t see your “detection by affiliation” section but make sure all sections are set to true. This was in the advanced ai Twitch stream recently. Twitch

  • You have to tie events to generate noise. For my test I wanted sound events to register on player jumping so in the player’s character BP, I added the following:

Now I get a single OnPerceptionUpdated call each time my player lands from jumping. Hope this helps.

Also, I think the ‘Make Noise’ stuff relates to the PawnSensingComponent which will probably be deprecated at some point (hopefully soon).

Hey thanks for this response! Yeah since 4.8 came out a lot of that is much clearer, thanks for the link to the twitch stream, I’ll go check that out now. Staff can close this if they want, thanks again for taking the time to answer :slight_smile:

To anyone else who stumbled here, my problem was that I did not have the “Instigator” pin connected.

Since there was no compile error, I never thought that it was as critical as it is. However, the AI Hearing perception requires an Instigator (or in the very least, including it fixed my problem).