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

ng min teck
Sun, 05 Aug 2018 09:28:45 +0000
Character & Animation

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?

3 posts - 1 participant