# Need help with Aiming

**URL:** <https://forums.unrealengine.com/t/need-help-with-aiming/778549>\
**Category:** Blueprint\
**Tags:** unreal-engine, vector, Blueprint, question\
**Created:** [February 25, 2023, 6:48pm UTC](https://forums.unrealengine.com/t/need-help-with-aiming/778549 "2023-02-25T18:48:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![AustrianMunzter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/austrianmunzter/32/630075_2.png) [@AustrianMunzter](https://forums.unrealengine.com/u/AustrianMunzter)\
**Post date:** [February 27, 2023, 9:32pm UTC](https://forums.unrealengine.com/t/need-help-with-aiming/778549/4 "2023-02-27T21:32:25Z")

</div>

hi,  
sorry was busy the last days…  
how about that, it will only track the gun in respect to the player

  
 ![ue_lookDirection](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/f/5/1f50140ce6bd0c48ace8a1cd0e509d4d36f0a51d.jpeg)

this is just a dot operation

hope this is the thing you are looking for 🙂

> [@sShArLoTaNn](#):
>
> So if the player is aiming forward, then x should be 1 and y should be 0. If player is aiming abit to the right, then x should be 0,5 and y should be 0,5. If to the right, then x = -0,5 and y = -0,5.

p.s. the dot goes from -1 - 1 but you can clamp it to your needs

cheers

---

_[View the full topic](https://forums.unrealengine.com/t/need-help-with-aiming/778549)._
