Making the character die hitting certain object

I was making an endless run game but I ran into a problem, I want the player to be destroyed when hitting certain objects (obstacles), but the problem is that i have many objects that the player could hit or overlap with like box collision’s, coins…
So is there a way to kill the player only when he hit that object ?

You can handle it inside the actor blueprint that is hitting/overlapping the player. Apply damage to the player or destroy.

The problem is that the obstacles move from side to side ( left to right and right to left )
so I need a way to check whether or not the overlapping actor was the player or something else.