# Change emitter rotation based on angle of attack?

**URL:** <https://forums.unrealengine.com/t/change-emitter-rotation-based-on-angle-of-attack/479806>\
**Category:** Character & Animation\
**Tags:** line-trace, rotation, attack, unreal-engine, question\
**Created:** [March 5, 2021, 2:54pm UTC](https://forums.unrealengine.com/t/change-emitter-rotation-based-on-angle-of-attack/479806 "2021-03-05T14:54:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AreC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arec/32/935913_2.png) [@AreC](https://forums.unrealengine.com/u/AreC)\
**Post date:** [March 5, 2021, 2:54pm UTC](https://forums.unrealengine.com/t/change-emitter-rotation-based-on-angle-of-attack/479806/1 "2021-03-05T14:54:36Z")

</div>

Hello,

Please take a look at the level blueprint.

 ![331614-levelbp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/a/caaad262fdc3be756e640efb974ef7d0d9529cd9.png)

I am using sockets and a sphere trace for the attack collisions as well.  
What I would like is for the **emitter to change rotation depending on the angle the character is being attacked from**.

Also, if it’s possible to affect the emitter’s velocity depending on the attack speed, that would be really awesome.

 ![331615-example.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/2/5/9255d85df66c876f67d1f71d54710257e8de5f81.png)

As you can see, the emitter is only going in the direction set in the particle emitter.

I would be happy to provide any further information if needed. Any help on this would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![AreC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/arec/32/935913_2.png) [@AreC](https://forums.unrealengine.com/u/AreC)\
**Post date:** [March 7, 2021, 4:38pm UTC](https://forums.unrealengine.com/t/change-emitter-rotation-based-on-angle-of-attack/479806/2 "2021-03-07T16:38:55Z")

</div>

After some trail and error, I finally got it working the way I intended.

 ![331709-characterbp.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/c/c/1cced0afdd9aaa748f9e5b9355879829f4f9f964.png)
