# AI cant detect tags

**URL:** <https://forums.unrealengine.com/t/ai-cant-detect-tags/486051>\
**Category:** AI\
**Tags:** gameplay-tags, unreal-engine, question, actor-class\
**Created:** [July 11, 2021, 10:14am UTC](https://forums.unrealengine.com/t/ai-cant-detect-tags/486051 "2021-07-11T10:14:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ares\_514](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ares\_514](https://forums.unrealengine.com/u/ares_514)\
**Post date:** [July 11, 2021, 10:14am UTC](https://forums.unrealengine.com/t/ai-cant-detect-tags/486051/1 "2021-07-11T10:14:35Z")

</div>

im trying to get my AI to detect the custom player class the player get detected but it cant check the tag i tried cheking the actor class but nothing seems to work any idea on how to do it

---

<div class="post-metadata">

**Author:** ![Micky](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Micky](https://forums.unrealengine.com/u/Micky)\
**Post date:** [July 11, 2021, 12:49pm UTC](https://forums.unrealengine.com/t/ai-cant-detect-tags/486051/2 "2021-07-11T12:49:03Z")

</div>

If you only want to check if the stimulus source is the player, just cast to the player, and if the cast success the the player is the source! You really don’t need a tag for the player (unless you got several players, of course!)
