# How to deal 1 time damage for all enemy in range in melee

**URL:** <https://forums.unrealengine.com/t/how-to-deal-1-time-damage-for-all-enemy-in-range-in-melee/430988>\
**Category:** Character & Animation\
**Tags:** unreal-engine, melee, CPP, question, Blueprint\
**Created:** [August 5, 2018, 9:28am UTC](https://forums.unrealengine.com/t/how-to-deal-1-time-damage-for-all-enemy-in-range-in-melee/430988 "2018-08-05T09:28:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ng\_min\_teck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ng\_min\_teck](https://forums.unrealengine.com/u/ng_min_teck)\
**Post date:** [August 5, 2018, 9:28am UTC](https://forums.unrealengine.com/t/how-to-deal-1-time-damage-for-all-enemy-in-range-in-melee/430988/1 "2018-08-05T09:28:45Z")

</div>

Hello, I have trouble to implement my melee combat, that can deal all enemy in range in 1 time

My melee combat is 3 slash attack, with 3 different animation. Each animation have different timeline length.  
I add the collision box in my weapon and a bool variable as a trigger that can damage the enemy.

The problem is i can’t make it damage multiple enemy in 1 slash as i set it that if it detect any collsion form the enemy, it will deal damage and the bool variable of can damage will set to false.

Any ideas how cna i implement such that it allow damage multiple enemy, but only 1 time per animation stage?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 5, 2018, 9:45am UTC](https://forums.unrealengine.com/t/how-to-deal-1-time-damage-for-all-enemy-in-range-in-melee/430988/2 "2018-08-05T09:45:10Z")

</div>

- have each enemy have its own bool and control whether they can be damaged again

or

- use DoOnce and reset it after delay

---

<div class="post-metadata">

**Author:** ![ApocalypticAI](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ApocalypticAI](https://forums.unrealengine.com/u/ApocalypticAI)\
**Post date:** [August 5, 2018, 4:23pm UTC](https://forums.unrealengine.com/t/how-to-deal-1-time-damage-for-all-enemy-in-range-in-melee/430988/3 "2018-08-05T16:23:49Z")

</div>

Post picture/screenshots of you blueprint and other relative settings if possible. It will make solving it a lot easier. 🙂
