# Making the character die hitting certain object

**URL:** <https://forums.unrealengine.com/t/making-the-character-die-hitting-certain-object/461243>\
**Category:** Mobile\
**Tags:** Mobile, overlap-actors, unreal-engine, UE4, question\
**Created:** [February 2, 2020, 5:59pm UTC](https://forums.unrealengine.com/t/making-the-character-die-hitting-certain-object/461243 "2020-02-02T17:59:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anan\_sadi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anan\_sadi](https://forums.unrealengine.com/u/Anan_sadi)\
**Post date:** [February 2, 2020, 5:59pm UTC](https://forums.unrealengine.com/t/making-the-character-die-hitting-certain-object/461243/1 "2020-02-02T17:59:56Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![Marcis](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/marcis/32/1103070_2.png) [@Marcis](https://forums.unrealengine.com/u/Marcis)\
**Post date:** [February 2, 2020, 6:32pm UTC](https://forums.unrealengine.com/t/making-the-character-die-hitting-certain-object/461243/2 "2020-02-02T18:32:50Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Anan\_sadi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anan\_sadi](https://forums.unrealengine.com/u/Anan_sadi)\
**Post date:** [February 8, 2020, 12:03pm UTC](https://forums.unrealengine.com/t/making-the-character-die-hitting-certain-object/461243/3 "2020-02-08T12:03:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![diwidrma](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@diwidrma](https://forums.unrealengine.com/u/diwidrma)\
**Post date:** [May 6, 2024, 3:43pm UTC](https://forums.unrealengine.com/t/making-the-character-die-hitting-certain-object/461243/4 "2024-05-06T15:43:29Z")

</div>

hi did you find a solution to your problem? im having the same issue with obstacles moving left to right and i want the player to die when touching them
