How to destroy physics statis meshes with bullet?

838d370259ccd43f829de14c2b844f71f3033ed6.jpeg

So, this is startup script for bullet, to add impulse to all physics object in level. I just added some fire explosion animation etc…

But how can I adjust to bullet, to destroy or delete from game that object what is hitted?

Example - bullet hit box. I want that box is destroyed from game (deleted).

I tried everything, but with “destroy actor” node I just get my bullet destroyed, not object that is hitted.

p.s. - I know how to do that when target object have blueprint code.

But what if I have a cca 300 static meshes that can be destroyed with bullet?

You need to tell the “destroy actor” node what it should destroy. Do this by linking up a reference to the hit object (which you can get by “breaking” the hit output pin and pulling the actor reference from there.

You need to connect the “Other Component” pin from the hit result to the destroy actor target pin.

Connect the Other (actor reference) pin on Event Hit to Destroy Actor and watch them vanish.

Thank you very much :smiley: