# Play Different Animation based on players position to enemy

**URL:** <https://forums.unrealengine.com/t/play-different-animation-based-on-players-position-to-enemy/469148>\
**Category:** Character & Animation\
**Tags:** direction, Behavior-Tree, ai-controller, unreal-engine, question\
**Created:** [August 4, 2020, 3:44am UTC](https://forums.unrealengine.com/t/play-different-animation-based-on-players-position-to-enemy/469148 "2020-08-04T03:44:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Alpha\_Maiestro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@The\_Alpha\_Maiestro](https://forums.unrealengine.com/u/The_Alpha_Maiestro)\
**Post date:** [August 4, 2020, 3:44am UTC](https://forums.unrealengine.com/t/play-different-animation-based-on-players-position-to-enemy/469148/1 "2020-08-04T03:44:18Z")

</div>

Currently working on a boss enemy and wanted it to have more life to its movements. Looking for a method in blueprint or behavior to play turn around animations based on the players position to the AI. For example, if the player is directly behind them and outside of their range they attempt to turn around and if the player is close they do a 360 attack. Heres a screenshot for context. I already have a completed method on how to basically use any animation for the enemy, I just need to know how to detect the players direction to play certain animations.
