PawnSensing - NPCs do not see each other

Hello Everyone !

I’m trying to make one NPC go to where another NPC is as soon as it see it.
In order to accomplish it, I added a PawnSensing component to my NPC and in the event graph I set the OnSeenPawn event in the following way.

However, the event doesnt trigger when two of my NPC look each other

But, if I put a controllable character in front of any NPC, the even is triggered.

Do you know what could I be missing ?

I hope all make sense.

Thank you !!

Are you checking to see if the cast has failed? Perhaps there’s something wrong with the cast?

But if OnSeePawn isn’t being fired at all, we need to see a different part of the graph, and that’s the conditions that lead to whether or not OnSeePawn gets fired.

Hey !!!

I checked if cast failed, but the event is not even getting fired!
Also, I tried to put a break point in the event and nothing happens.
How can I see the code or the graph of the conditions to execute the OnSeePawn event?

From the looks of things, it sounds like your sensing component has “Only Sense Players” set to true (which is the default behavior).

86237-onlysenseplayers.png

Turn that off and see if it fixes your issue.

You are correct !!

That solved my issue !!

Thanks a lot !

Awesome, glad to hear it! I look back at open issues to make sure to follow up with open items. It would help me out a lot if you click the check box on this answer. Cheers!

OMG, That solved my issue !! helpful!