How would you get the AI to have "Eyes in the back of the head" kind of thing?

I know it is not as realistic, but how to get them to always move to you no matter if they are looking your way or not?

Hey there @usa423! So this kind of depends how omniscient you want them to be. If you’re fine with it not being vision but hearing (does the same job but a little different), the perception system has sound cues you can trigger however you’d like.

Alternatively if you need line of sight checks for your omniscient enemy, but wanted to handle it manually, you could just use a sphere collision set to overlaps only then single line trace to your target when it comes in range to see if they are obstructed or not. This will bypass the entire pawn sensing system.

Some resources below:

Disclaimer: One or more of these links are unaffiliated with Epic Games. Epic Games is not liable for anything that may occur outside of this Unreal Engine domain. Please exercise your best judgment when following links outside of the forums.

Using hearing perception:

1 Like

Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.