# How i can damage the character with leaser beam

**URL:** <https://forums.unrealengine.com/t/how-i-can-damage-the-character-with-leaser-beam/483945>\
**Category:** Character & Animation\
**Tags:** damage-sense, character-state, character-creator, unreal-engine, question\
**Created:** [May 26, 2021, 9:28pm UTC](https://forums.unrealengine.com/t/how-i-can-damage-the-character-with-leaser-beam/483945 "2021-05-26T21:28:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Panlik611](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/panlik611/32/88714_2.png) [@Panlik611](https://forums.unrealengine.com/u/Panlik611)\
**Post date:** [May 26, 2021, 9:28pm UTC](https://forums.unrealengine.com/t/how-i-can-damage-the-character-with-leaser-beam/483945/1 "2021-05-26T21:28:39Z")

</div>

Hi  
I created a boss with a special attack of leaser beam. I created the leaser beam in niagara but I’m not able to find a way to damage the character with that beam please help me

---

<div class="post-metadata">

**Author:** ![pargregory](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@pargregory](https://forums.unrealengine.com/u/pargregory)\
**Post date:** [May 26, 2021, 9:48pm UTC](https://forums.unrealengine.com/t/how-i-can-damage-the-character-with-leaser-beam/483945/2 "2021-05-26T21:48:24Z")

</div>

Simplest method would be to add a float variable to your character called health, and when your attack hits it decrements the health variable until it reached 0 or below where it would then do some death function of your choosing. You’ll want to use OnOverlapBegin or OnOverlapHit, depending on how you want to implement this, and those would trigger the health function to subtract the damage from your health.

---

<div class="post-metadata">

**Author:** ![Panlik611](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/panlik611/32/88714_2.png) [@Panlik611](https://forums.unrealengine.com/u/Panlik611)\
**Post date:** [May 26, 2021, 10:05pm UTC](https://forums.unrealengine.com/t/how-i-can-damage-the-character-with-leaser-beam/483945/3 "2021-05-26T22:05:31Z")

</div>

Hi thanks for the response.

I think so we cannot activate overlap events with niagara.

I need a way to check that weather the character was hit by the niagara leaser or not

---

<div class="post-metadata">

**Author:** ![RuTzoT](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RuTzoT](https://forums.unrealengine.com/u/RuTzoT)\
**Post date:** [May 27, 2021, 2:58am UTC](https://forums.unrealengine.com/t/how-i-can-damage-the-character-with-leaser-beam/483945/4 "2021-05-27T02:58:13Z")

</div>

I have not worked with Niagara, but have worked with regular particles. For the beam, you must raycast to find the endpoint for the laser, in the same trace you can “Apply Damage” to the actor who was hit, and in your pawn for the “Any Damage” event, do the necessary logic to reduce hp.

---

<div class="post-metadata">

**Author:** ![Panlik611](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/panlik611/32/88714_2.png) [@Panlik611](https://forums.unrealengine.com/u/Panlik611)\
**Post date:** [May 27, 2021, 5:41am UTC](https://forums.unrealengine.com/t/how-i-can-damage-the-character-with-leaser-beam/483945/5 "2021-05-27T05:41:21Z")

</div>

Thanks I tried this and it’s work properly
