# Faction Based Enemy Detection?

**URL:** <https://forums.unrealengine.com/t/faction-based-enemy-detection/475833>\
**Category:** AI\
**Tags:** ai-navigation, Behavior-Tree, get-actor-right-vect, unreal-engine, Blueprint, question\
**Created:** [December 13, 2020, 10:37am UTC](https://forums.unrealengine.com/t/faction-based-enemy-detection/475833 "2020-12-13T10:37:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![English-Muffin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@English-Muffin](https://forums.unrealengine.com/u/English-Muffin)\
**Post date:** [December 13, 2020, 10:37am UTC](https://forums.unrealengine.com/t/faction-based-enemy-detection/475833/1 "2020-12-13T10:37:40Z")

</div>

![324628-unknown.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/a/e/3ae881bac11ae421ab37d7ced6ba07fffa082570.png)

Been trying to make a blueprint like this but instead of getting the location of the player it gets the location of any actor from an enemy faction.

 ![324630-2020-12-13-02-35-21-enemy-01-ai.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/6/6f6d088607e86c2b904e472fbab1d96494f474e1.png)

 ![324629-2020-12-13-02-33-27-findenemytask.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/3/d1376e1ff481ff119e4415f67b1c783bf9f28d10.png)

Here’s the code I’ve been working on but it doesn’t seem to get anything
