Collision for multiple enemies

fuelfoundrysix

New member
Hey everyone!
On OnDamageEvent in the health script, I am trying to detect when multiple enemies receive damage from a single weapon. The "SingleHit" checkbox is unticked. However, it only returns the first enemy hit, without the event for the second enemy
Also, only the first enemy that collides with the weapon takes damage and deducts health. (This is for the sword melee weapon in third person)
 
The SingleHit option will stop colliding with other objects after it has hit the first collider. Instead of a "SingleHit" option there should be a "SingleCollider". I can add that to my list, but if you want to add it to yourself you will need to modify the MeleeWeapon component.
 
Top