How to Destroy Actor with all attached Actors?

I had an issue similar to this. In my case the enemy AI is a character and the weapon of the AI is made in a different Actor blueprint(Weapon_Base). So I spawn these weapons to a socket on the enemy AI.
Now here is the destroying part:

  1. I destroy the enemy AI blueprint (with destroy self)
  2. I promote the output of the spawned actor from class to a variable, and set this
  3. Destroy the spawned actor by plugging it in another destroy node!

321244-gag.png

Now each time I kill the enemy AI, his weapon also gets destroyed.

Hope this helps you.

1 Like