I’m using a sphere trace to detect enemies in the grenades blast radius, but its not working as expected. I was originally using a sphere volume but it would explode through walls and other static meshes. Is there a better way to do this?
I thinking … before the explosion you are doing a sphere trace to check if there is any enemy, right ? Check if the object hit have the Enemy tag … if not … They will not be damaged !
Next part: Try and use a Multiphere trace and a for each loop with break to collect every actor hit…then use a single line trace to see if your grenade is in front of the enemy or he is in other side of a wall…that way if your trace do not hit the same actor of the multisphere…he will not be damaged…