# SHIP FOLLOW SIGHT

**URL:** <https://forums.unrealengine.com/t/ship-follow-sight/793734>\
**Category:** Português (Portuguese)\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [March 18, 2023, 5:17pm UTC](https://forums.unrealengine.com/t/ship-follow-sight/793734 "2023-03-18T17:17:08Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maskindarker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maskindarker/32/561065_2.png) [@Maskindarker](https://forums.unrealengine.com/u/Maskindarker)\
**Post date:** [March 18, 2023, 5:17pm UTC](https://forums.unrealengine.com/t/ship-follow-sight/793734/1 "2023-03-18T17:17:08Z")

</div>

_PLEASE, HELP!!!  
Is there any way through blueprint, make the Static Mesh Nave, follow Widget Mira. Both are in the same blueprint character?_

 ![Mygame](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/8/d1862b94901e63e5c3f7e750bc4c968b6814f38d.jpeg)

---

<div class="post-metadata">

**Author:** ![ScamBot45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ScamBot45](https://forums.unrealengine.com/u/ScamBot45)\
**Post date:** [March 18, 2023, 6:58pm UTC](https://forums.unrealengine.com/t/ship-follow-sight/793734/2 "2023-03-18T18:58:19Z")

</div>

It’s kind of impossible to actually read that blueprint when it’s zoomed out that far

---

<div class="post-metadata">

**Author:** ![Maskindarker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maskindarker/32/561065_2.png) [@Maskindarker](https://forums.unrealengine.com/u/Maskindarker)\
**Post date:** [March 18, 2023, 7:13pm UTC](https://forums.unrealengine.com/t/ship-follow-sight/793734/3 "2023-03-18T19:13:53Z")

</div>

But what I want to know is next. The blueprint on the side has nothing but ship movement, damage and shooting.

---

<div class="post-metadata">

**Author:** ![Maskindarker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maskindarker/32/561065_2.png) [@Maskindarker](https://forums.unrealengine.com/u/Maskindarker)\
**Post date:** [March 18, 2023, 7:20pm UTC](https://forums.unrealengine.com/t/ship-follow-sight/793734/4 "2023-03-18T19:20:46Z")

</div>

How do I make the Static Mesh “Nave” follow the Widget “WidgetMira”? Is there a possibility, even in the Blueprint Character “Nave\_Rail” itself? That’s what I want to know.

![Look at 1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/9/4/794a9108b062426dada5c7f9b4322e1301137ed7.jpeg)

---

<div class="post-metadata">

**Author:** ![ScamBot45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ScamBot45](https://forums.unrealengine.com/u/ScamBot45)\
**Post date:** [March 18, 2023, 7:23pm UTC](https://forums.unrealengine.com/t/ship-follow-sight/793734/5 "2023-03-18T19:23:50Z")

</div>

For rotating directly towards an widget or moving towards it? Because I can find an vid for that

---

<div class="post-metadata">

**Author:** ![Maskindarker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maskindarker/32/561065_2.png) [@Maskindarker](https://forums.unrealengine.com/u/Maskindarker)\
**Post date:** [March 18, 2023, 7:28pm UTC](https://forums.unrealengine.com/t/ship-follow-sight/793734/8 "2023-03-18T19:28:06Z")

</div>

The Ship has to look into the crosshairs, so that when the player fires, he fires in the direction of the crosshairs and not always towards the center.

---

<div class="post-metadata">

**Author:** ![ScamBot45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ScamBot45](https://forums.unrealengine.com/u/ScamBot45)\
**Post date:** [March 18, 2023, 7:47pm UTC](https://forums.unrealengine.com/t/ship-follow-sight/793734/9 "2023-03-18T19:47:11Z")

</div>

Well, I’ve found something for an set of turrets.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/7/8075a38024e5204177cbcef62f0b08a9c8896544.jpeg "UE4 Turret Tutorial Part 1 - Aim at Target Regardless of Position") ](https://www.youtube.com/watch?v=xLogoeFA-wQ)

But you have to alter some code here and there. At 5:40 you need the world location of whatever your reticle is touching and set that as an custom variable. If it’s something that has multiple arcs of fire, you’ll need to run an check to see if the gun is actually pointing at the reticle before it can fire.

---

<div class="post-metadata">

**Author:** ![Maskindarker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maskindarker/32/561065_2.png) [@Maskindarker](https://forums.unrealengine.com/u/Maskindarker)\
**Post date:** [March 18, 2023, 8:31pm UTC](https://forums.unrealengine.com/t/ship-follow-sight/793734/10 "2023-03-18T20:31:59Z")

</div>

I already watched this video. The problem is that I would have to create a separate blueprint and put it in the scene. I’ll try something here and anything, post the result. Thanks!

---

<div class="post-metadata">

**Author:** ![High500](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/high500/32/906557_2.png) [@High500](https://forums.unrealengine.com/u/High500)\
**Post date:** [March 19, 2023, 9:02am UTC](https://forums.unrealengine.com/t/ship-follow-sight/793734/11 "2023-03-19T09:02:31Z")

</div>

Surely you are looking through the cross hairs , therefore the camera is looking in the direction you want? Therefore rotste the gun towards the camera vector?

If the widget is moveable ie top down moves with mouse aim. Translate the coordinates of the widget by getting the world coords of the mous x and y and rotate to look at that point

---

<div class="post-metadata">

**Author:** ![Maskindarker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maskindarker/32/561065_2.png) [@Maskindarker](https://forums.unrealengine.com/u/Maskindarker)\
**Post date:** [March 25, 2023, 11:15am UTC](https://forums.unrealengine.com/t/ship-follow-sight/793734/12 "2023-03-25T11:15:56Z")

</div>

Guys, I already managed to do the mechanism for another video and it worked. It’s just not perfect yet, so if you need some tweaks to the code, I’ll look up how to do it. Anyone interested in knowing how I did it, I’ll leave the link to the video I followed.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/c/c/fcc1ee22aa548316d2d65e2d6cc8eb39b93da87c.jpeg "Unreal Engine | Starfox Q&A") ](https://www.youtube.com/watch?v=jMRsL5iHurM)

I followed the step by step of this video and tested the code until it fit my game and it worked. As the video itself says, it’s not 100%, but I can do what I need and with time I’ll adjust the details.

For now thanks for the help!
