# How do I keep my character facing the enemy while he is attacking it?

**URL:** <https://forums.unrealengine.com/t/how-do-i-keep-my-character-facing-the-enemy-while-he-is-attacking-it/327690>\
**Category:** Character & Animation\
**Tags:** target, direction, rotation, unreal-engine, question\
**Created:** [August 5, 2015, 3:42am UTC](https://forums.unrealengine.com/t/how-do-i-keep-my-character-facing-the-enemy-while-he-is-attacking-it/327690 "2015-08-05T03:42:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TBrooks27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TBrooks27](https://forums.unrealengine.com/u/TBrooks27)\
**Post date:** [August 5, 2015, 3:42am UTC](https://forums.unrealengine.com/t/how-do-i-keep-my-character-facing-the-enemy-while-he-is-attacking-it/327690/1 "2015-08-05T03:42:58Z")

</div>

I have my combat set up to where the enemy is clicked and my character walks over and as soon as he enters a box collision trigger, a timer starts that deals damage every second to each other. I just need to make my character face the direction of the enemy while they fight so that the animation is in the proper direction, and same for the enemy. Then once the fight is over (I.e. enemy dies) my character can go back to normal animation and facing whatever direction he’s running. I can’t figure it out at all, any help is appreciated.

---

<div class="post-metadata">

**Author:** ![SkeetonYu](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SkeetonYu](https://forums.unrealengine.com/u/SkeetonYu)\
**Post date:** [August 5, 2015, 8:22am UTC](https://forums.unrealengine.com/t/how-do-i-keep-my-character-facing-the-enemy-while-he-is-attacking-it/327690/2 "2015-08-05T08:22:44Z")

</div>

Find Look At Rotation Node. This should help you out.

---

<div class="post-metadata">

**Author:** ![TBrooks27](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TBrooks27](https://forums.unrealengine.com/u/TBrooks27)\
**Post date:** [August 6, 2015, 10:30pm UTC](https://forums.unrealengine.com/t/how-do-i-keep-my-character-facing-the-enemy-while-he-is-attacking-it/327690/3 "2015-08-06T22:30:43Z")

</div>

You are awesome, this is exactly what I need, thank you.

---

<div class="post-metadata">

**Author:** ![Ozgurr\_Ozkann](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ozgurr\_Ozkann](https://forums.unrealengine.com/u/Ozgurr_Ozkann)\
**Post date:** [November 10, 2023, 2:54pm UTC](https://forums.unrealengine.com/t/how-do-i-keep-my-character-facing-the-enemy-while-he-is-attacking-it/327690/4 "2023-11-10T14:54:46Z")

</div>

You can also look at the Motion Warping if you are using root motion animations brother.
