Destoying a object when shot

I uses the 1st person (shooter) template and want to make the cubes that are affected by the gun’s projectiles disappear when they are shot. how do I do this?

plz i need a awnser

You could try setting up a collision box around the cubes you want to destroy. Then program it with a On Event Begin Overlap connected to a Destroy actor. You may find this tutorial helpful: Player Health Pickup - #11 Unreal Engine 4 Blueprint Creations Tutorial - YouTube

Instead of adding health to the player, and instead of making it so that is interacts with the player. Make it destroy itself with a destroy actor when it comes into contact with the projectile.

i don’t understand

at all…

wait
what destroy actor?

Did you watch that video I linked?