How to DESTROY ALL attached components of a spline component?

Hi all, how do I achieve this without destroying the parent?

Thanks!

Create a Custom event to spawn the emitters don’t use Tick - You want to spawn an emitter then delete it in the same frame then you will never see it. You will want to spawn the emitters along the spline > pause for a second or two for the emitter to play then > detach the emitter and delete each one in the sequence it was created or all at once after they played one cycle I am assuming.

OH, yes yes yes, i dont use a tick, it’s just an example, I’m just trying to show a logic flow,

and I’m not trying to spawn emitter along the spline, just on every end point of a linear spline via line trace.

im still stucked with Loop method tho, im not really a fan of a loop :smiley:

…still looking for a way to Instantly delete all spawned emitter at once (this is just a personal preference :D)

here is an example of my tests

1 Like

What’s wrong with looping each point of the spline, running a sphere or cylinder trace to select whatever is near it (overlap) and forcing whatever is found to delete?

Given you have some sort of parenting going on, you can probably even go off the parenting without traces/sweeps.

A Loop is a loop. If you need to do somethong for every point in the spline, the only way is iteration.

One possible exception:
you want to spawn an actor with a dedicated interface which you can issue a message for destroying… issuing the message will then cause them all to destory…
Thats likely exactly what you want.

Other options still include loops.
GetAllActorsof class
Getbytagname
Etc.

There is nothing wrong with loop in general,

I just want to make my bp easy to read and less is more right :smiley: if there is an effective shortcut to things, I always use them…

well, still new to this, my initial thought when I saw the “Clear Spline Points” is that there must be one for Object arrays or Parent/Child too, but I couldn’t find one or I just don’t know the function’s name.

I still don’t understand some of the things you’ve said, I have yet to encounter these things. some are still a jargon to me :smiley:

well seems like no other way, I’ll stay with loop for now… then just collapse those nodes to make it easier for me to read when i try to make sense of it,

thanks!

Probably.

1 Like