How to destroy static mesh when bullet hit ?
you just need a reference to the object to destroy then use the destroy actor node. so in the case of a projectile actor you could use a on hit event then use the other actor pin as the target for a destroy actor. if using a line trace you would use the hit result.
I try this but i got a new problem that all the static mesh present in game is destroying ( boxes and floor which is present in game are also destroying when trace is hit ). I want to destroy only the bottles when trace is hit
answered Feb 16 '19 at 07:29 AM
I would recommend using on component hit -> cast to the bulltet So inside of every object I would make it destroy it self when hit by a bulltet or if you want you could also make the object count the hits and disappear after X hits...
In the screenshot provided I used collisions to make a claymore explode when a projectile hits it directly. It also explodes when a nade detonates in a larger radius and (not included in the screenshot) when a player walks inside the smaller collision, he dies.
I hope this helps :D
answered Feb 16 '19 at 09:38 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here