how to remove child actors

Hi, I’m trying to make a lock-on targeting system similar to the Smart Pistol from Titanfall. My BP’s capable of marking actors (it recognizes targetable actors through a component) . The main issue is that my code keeps adding redundant actors to the locked object


I have this BP to attach the lock indicators to the actors ('targets")

And this the BP I have to remove the indicators but obviously something is going wrong here.

Overall I don’t know how to correctly remove child actors from an actor or even if this is the correct process.

1 Like

They’re not child actors, they’re attached actors.

image

But, I guess you could also code the target to just destroy itself after a certain time?

I see, I implemented that function instead and everything works now. Thank you!

1 Like

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