How to connect each spawned actor with beam emitter?

hello,

I’m having problem with an idea. I would like to click on the ground and spawn little dots in that place and connect all overlaping dots automatically with beam emitters to make something like spider’s web (or anything like that - just want them to be connected with a line).

Would like to do something like this.

I know how to spawn actors and connect each next with previous, but its based on my clicks locations not sockets and I can even connect more dots just by saving my previous clicks positions and randomly choosing beams sources and targets, but it’s still not how it should be.

My blueprint.

What I get.

Can anyone help me please?

1 Like

I suggest you look at GetOverLappingActors for your purposes. That way when you spawn one of those points, on their begin play you can trigger an overlap check to give you every actor which is around your point. You can then use that information to spawn your emitters.

Using the tutorial for Beam Particles along with simple checks from “OnOverlap” and “GetOverlappingActors” you can easily create your linked sphere example.

hello MajinSephiroth and thank you a lot.
I did it :slight_smile: never though I could do such a things, but you made me to do this.
It’s not perfect but it works.
Prolly to make it better I should spawn beams at sockets but didn’t figure how to make it.
If anyone need to know how I made this, here it is:

I pointed some important things.
And this is how it looks like in the game:

Thank you again MajinSephiroth :slight_smile:

1 Like

Hello! I’m real late to this, but has this been resolved? I am currently having the exact same issue for my game. the difference is that I have the objects/ actors moving, and so I want the beams to move with the actors but instead they remain in place. Please help! any help will be GREATLY appreciated.