# How to make AI not detect my player

**URL:** <https://forums.unrealengine.com/t/how-to-make-ai-not-detect-my-player/444913>\
**Category:** AI\
**Tags:** unreal-engine, pawn, question\
**Created:** [March 8, 2019, 9:17pm UTC](https://forums.unrealengine.com/t/how-to-make-ai-not-detect-my-player/444913 "2019-03-08T21:17:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AKOV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AKOV](https://forums.unrealengine.com/u/AKOV)\
**Post date:** [March 8, 2019, 9:17pm UTC](https://forums.unrealengine.com/t/how-to-make-ai-not-detect-my-player/444913/1 "2019-03-08T21:17:55Z")

</div>

Hi, I have created a Drone follower to follow my third person character around and shoot at my enemies

Currently the drone shoots at any pawn it detects including my character as I cant find a way to differentiate between my character and the enemies. All seem to fall under ‘pawn’

thanks in advance for any help

---

<div class="post-metadata">

**Author:** ![ThompsonN13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ThompsonN13](https://forums.unrealengine.com/u/ThompsonN13)\
**Post date:** [March 8, 2019, 10:48pm UTC](https://forums.unrealengine.com/t/how-to-make-ai-not-detect-my-player/444913/2 "2019-03-08T22:48:48Z")

</div>

you could easily add in another check to see if the target is the player. beyond that its pretty situation dependent so we would need more information such as seeing your script.

---

<div class="post-metadata">

**Author:** ![Nebula\_Games\_Inc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nebula\_Games\_Inc](https://forums.unrealengine.com/u/Nebula_Games_Inc)\
**Post date:** [March 8, 2019, 11:11pm UTC](https://forums.unrealengine.com/t/how-to-make-ai-not-detect-my-player/444913/3 "2019-03-08T23:11:39Z")

</div>

Instead of checking for “pawns”, create a custom collision channel for “enemies” and have your AI drone search for “enemies” instead of the “pawn” collision channel. This will easily separate friendlies from enemies.
