# Turret won't turn towards me and just goes the opposite direction

**URL:** <https://forums.unrealengine.com/t/turret-wont-turn-towards-me-and-just-goes-the-opposite-direction/1812141>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [April 20, 2024, 6:10am UTC](https://forums.unrealengine.com/t/turret-wont-turn-towards-me-and-just-goes-the-opposite-direction/1812141 "2024-04-20T06:10:12Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 20, 2024, 8:16am UTC](https://forums.unrealengine.com/t/turret-wont-turn-towards-me-and-just-goes-the-opposite-direction/1812141/4 "2024-04-20T08:16:23Z")

</div>

The video does not help. You asked:

> Not sure what I am doing wrong

The script is simply incorrect. Explained in the previous post. At **the most fundamental level** , you’d want something along the lines of:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/a/6/5a6271081d86d39f474ed222e58b78a44c4840f2.png)

* * *

Or opt for any of the bazillion [turret tuts](https://www.youtube.com/results?search_query=ue5+turret) on YT.

* * *

Or have a look at this turret:

> [@Restrict Pawn's Rotation](https://forums.unrealengine.com/t/restrict-pawns-rotation/487856/3):
>
> Have a look at this one: Script to copy: [[Image from Gyazo]](https://gyazo.com/07facc8d174c94dd6103a641878c6929) Essentially, Dot Product is an answer to most angular issues. The yellow arrow indicates the turret’s front. Oh, and a TL is probably not the way to go about it unless you’re after something truly specific / unique / inflexible. Does not mesh well with target tracking in my head.

There’s even script there to copy.

---

_[View the full topic](https://forums.unrealengine.com/t/turret-wont-turn-towards-me-and-just-goes-the-opposite-direction/1812141)._
