Download

Destroying leftover actors attached by socket

Anyone familiar with using the destroyActor node and how to use it to clean up left over actors that are attached by socket to an NPC

If I’m not mistaken the Other NPC has to call destroy actor…it’s a smidge annoying…
I’d suggest create a variable called something like “Temp actor”, set that variable when you attach the actor, and create a function called “destroy temp actor” that destroys whatever’s set to the variable “Temp actor”…at least you can just cast these things and call it from somewhere else…haven’t tried so let me know if this doesn’t work and I’ll give it a go until I find a solution…

thank you for you answer, still really new to UE. I’m going to read some documentation on how to do all that.