hi, trying to create a Bomberman Game. But how can i destroy all the objects that is inside of a sphere trace when the bomb explode?
Get a list of overlapping actors, then iterate through each one destroying them like so:
If you only want to destroy the first one that it hits, use regular sphere trace instead of multi-sphere trace.
I tried this but i did not work. I created the function in my bomb blueprint and called it before it explodes. But no actors destroys.
Change the draw debug so you can see what is happening, if it is overlapping actors check their collision settings.
This should be enough to put you on the right track, you’ll need to do some debugging for yourself.