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

**URL:** <https://forums.unrealengine.com/t/how-would-you-get-the-ai-to-have-eyes-in-the-back-of-the-head-kind-of-thing/1242291>\
**Category:** AI\
**Tags:** unreal-engine, question\
**Created:** [July 28, 2023, 1:09am UTC](https://forums.unrealengine.com/t/how-would-you-get-the-ai-to-have-eyes-in-the-back-of-the-head-kind-of-thing/1242291 "2023-07-28T01:09:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [July 28, 2023, 1:09am UTC](https://forums.unrealengine.com/t/how-would-you-get-the-ai-to-have-eyes-in-the-back-of-the-head-kind-of-thing/1242291/1 "2023-07-28T01:09:01Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [July 28, 2023, 5:56am UTC](https://forums.unrealengine.com/t/how-would-you-get-the-ai-to-have-eyes-in-the-back-of-the-head-kind-of-thing/1242291/2 "2023-07-28T05:56:10Z")

</div>

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:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/a/e8a6b113850392ed07652e389d14f3973ee607d4.jpeg "Unreal Engine 5 Tutorial - AI Part 5: Hearing Perception") ](https://www.youtube.com/watch?v=OytuX_swh8M)

> **[AI Perception](https://docs.unrealengine.com/5.2/en-US/ai-perception-in-unreal-engine/)**
>
> Documents the AI Perception Component and how it is used to generate awareness for AI.

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [July 28, 2023, 4:04pm UTC](https://forums.unrealengine.com/t/how-would-you-get-the-ai-to-have-eyes-in-the-back-of-the-head-kind-of-thing/1242291/3 "2023-07-28T16:04:00Z")

</div>

Thank you!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [August 27, 2023, 4:04pm UTC](https://forums.unrealengine.com/t/how-would-you-get-the-ai-to-have-eyes-in-the-back-of-the-head-kind-of-thing/1242291/4 "2023-08-27T16:04:38Z")

</div>

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