Spheres alongside vector

Is there a way to make this? I wanna create a row of spheres that start at my position and ends in like 5m, say 10 spheres connected front to end

edit: I ended up making them one by one but I’m unable to store them in a single player var (I don’t remember how X_x) anyone care to help my old memory remember?

You can assign all effects id to an array. I think this is what you are looking for

1 Like

yes! that’s exactly what I wanted to do but… I have a hard time understanding arrays X_x

first, I created a player variable and set the value to empty array, called it G

Then I create an effect

Then I modify var G with append to array and last created entity?

but then when I try to destroy the effect using player var G, it doesn’t work x_x

1 Like

It’s because you can only destroy one effect at a time, instead of using “player variable G” as to what effect to destroy, use “Value in array(player variable G(index))”

I would recommend using “modify player variable at index” instead of “append”, so you can keep track of what effect is at what index.

2 Likes