# Multiple homing rocket launcher

**URL:** <https://forums.unrealengine.com/t/multiple-homing-rocket-launcher/452069>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 11, 2019, 1:21pm UTC](https://forums.unrealengine.com/t/multiple-homing-rocket-launcher/452069 "2019-07-11T13:21:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wcroll2221](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wcroll2221](https://forums.unrealengine.com/u/Wcroll2221)\
**Post date:** [July 11, 2019, 1:21pm UTC](https://forums.unrealengine.com/t/multiple-homing-rocket-launcher/452069/1 "2019-07-11T13:21:31Z")

</div>

I have a missile turret where I want to fire Multiple homing rockets from for multiple targets what I now have is a multi box trace for object where I get the amount of hit actors and it fires the right amount of rockets from th arrows but I need to know how to give my rockets the targets. At max it can fire 8 rockets in 1 go but it can stil fire less if there are not 8 targets in sight. My rocket bp is a simple sphere with impuls and collision

Can sombody help me with the homing aspect of my rocket. Thanks

 ![282161-mesh.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/b/0ebcac4c5cde3f67e4da7eda3ed5bf26fa10d3fc.jpeg)

 ![282163-bp1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/1/b810d79aae06beee2544c7ea2ddaaa5495b50a79.jpeg)

 ![282164-bp2.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/7/5/c75ae255166d120fdf5e8acaea9b888a1c581fee.jpeg)

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [July 11, 2019, 6:34pm UTC](https://forums.unrealengine.com/t/multiple-homing-rocket-launcher/452069/2 "2019-07-11T18:34:27Z")

</div>

Find your actor I don’t know how do you want to do then add projectile movement. It has homing feature.

---

<div class="post-metadata">

**Author:** ![Wcroll2221](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wcroll2221](https://forums.unrealengine.com/u/Wcroll2221)\
**Post date:** [July 11, 2019, 7:01pm UTC](https://forums.unrealengine.com/t/multiple-homing-rocket-launcher/452069/3 "2019-07-11T19:01:03Z")

</div>

I use a multiBoxTraceForObjects so I get multiple actors but I need to know how to set them as homing targets I want to fire missiles at all targets hit by the trace except for when there are more than 8 than I only want to fire 8 rockets to 8 targets i have never worked with arrays before so don’t know a lot about it

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [July 11, 2019, 8:33pm UTC](https://forums.unrealengine.com/t/multiple-homing-rocket-launcher/452069/4 "2019-07-11T20:33:51Z")

</div>

Hey,

take a look at this thread, it’s exactly what you want:

> **[How to configure a homing projectile?](https://forums.unrealengine.com/questions/202501/how-to-configure-a-homing-projectile.html)**
>
> I’m trying to turn a projectile into a homing projectile at runtime in a function. What parameters need to be filled in order for an actor with a Projectile component to home in on a target? I’ve done the following: Assign a default non-zero...

Have fun

---

<div class="post-metadata">

**Author:** ![Wcroll2221](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wcroll2221](https://forums.unrealengine.com/u/Wcroll2221)\
**Post date:** [July 12, 2019, 11:02am UTC](https://forums.unrealengine.com/t/multiple-homing-rocket-launcher/452069/5 "2019-07-12T11:02:18Z")

</div>

How does it work? Because I do not get how to do it i need to get the actors my multiboxtrace hits and set al the ones that are hit to homing targets

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [July 12, 2019, 7:50pm UTC](https://forums.unrealengine.com/t/multiple-homing-rocket-launcher/452069/6 "2019-07-12T19:50:51Z")

</div>

If you don’t know how to hit targets then I would suggest something:

Place collider that will collide with actor you want (collision settings) set generate overlap events bind event to on begin overlap and use some hit function to subtract health from enemy. If you don’t have such system for health you will probabaly need to create one.

Is that clear engouh now?

---

<div class="post-metadata">

**Author:** ![Wcroll2221](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wcroll2221](https://forums.unrealengine.com/u/Wcroll2221)\
**Post date:** [July 12, 2019, 8:01pm UTC](https://forums.unrealengine.com/t/multiple-homing-rocket-launcher/452069/7 "2019-07-12T20:01:45Z")

</div>

I am not using it for a game or such I am just making it for on my portfolio and i’m also not realy the best with BP so some things i still don’t get i just need to make the array of actors i get from my multiboxtrace to cast to my homing projectile that is the part where i’m stuck

---

<div class="post-metadata">

**Author:** ![Wcroll2221](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Wcroll2221](https://forums.unrealengine.com/u/Wcroll2221)\
**Post date:** [July 13, 2019, 11:21am UTC](https://forums.unrealengine.com/t/multiple-homing-rocket-launcher/452069/8 "2019-07-13T11:21:18Z")

</div>

It works i found a way to make it work but thanks for helping
