How to create a visible line connecting a player character to another character ?

Hi,

I want to create a visual link/line between a player character and another actor. Whenever the character moves the line should connect both players at all times and get longer or shorter depending on the distance between both character.
What would be a good approach to make this one ?

There are a number of ways to do that. The easiest would be the DrawDebugLine function. The most useful one probably a particle effect. Search for something like “unreal niagara beam” on YouTube, there should be plenty of tutorials.

The line itself isn’t the problem. I think too something made with niagara effect would be the way to go. The problem is how to create the logic for the line exactly. I want to spawn a moving actor and it is at this point where this line should spawn from player character to this actor. This actor will move around so the line should aways move accordingly and change it’s lenght and follow both actors. What will be the steps requiered to do this ?
Or can you point me to some tutorial on this ?

Edit: I just found some solution with a niagara template Dynamic Beam. it seems it works fine with this method.

Ty for the help

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.