# How to cast to the location of a separate Actor on an input event?

**URL:** <https://forums.unrealengine.com/t/how-to-cast-to-the-location-of-a-separate-actor-on-an-input-event/250833>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [September 15, 2021, 4:01am UTC](https://forums.unrealengine.com/t/how-to-cast-to-the-location-of-a-separate-actor-on-an-input-event/250833 "2021-09-15T04:01:39Z")\
**Posts on this page:** 1\
**Showing post:** 23

<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:** [September 16, 2021, 6:16pm UTC](https://forums.unrealengine.com/t/how-to-cast-to-the-location-of-a-separate-actor-on-an-input-event/250833/23 "2021-09-16T18:16:29Z")

</div>

Spline + Spline Mesh Component. Or ribbon particle (orwhatshername) in Niagara.

Check here:

> [@Connect mesh between two world vectors at runtime?](https://forums.unrealengine.com/t/connect-mesh-between-two-world-vectors-at-runtime/213028/2):
>
> Spline mesh component can deform meshes. Or are you actively trying to avoid using a spline? As in: This is using a cube as the beam mesh, scaled down. Would that work?

And here:

> [@Laser beam that locks and follows a target](https://forums.unrealengine.com/t/laser-beam-that-locks-and-follows-a-target/227735/3):
>
> I would suggest getting into Niagara. This channel helped me a lot Also here for the initial beam setup Then for the follow mechanics you use need to make a user parameter for the beam end variable so you can manipulate it from a blueprint Video is in french but you can turn the sound of and follow it anyway. [[Niagara : How to create electric arcs between 2 points - UE4 tutorials] ](https://www.youtube.com/watch?v=SajyFZ35OBI)

* * *

You can also draw lines with widgets, and the HUD class does it well, too. Plenty of options, actually. Even the materials can draw 2d / 3d splines - but there’s an upfront cost to setting it up.

* * *

> outside of the editor

So a shipped product or… ?

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-cast-to-the-location-of-a-separate-actor-on-an-input-event/250833)._
