Sword taking health off AI when attack isn't happening.

Hello, I have a problem; when I get close to my enemy the players sword hits the sides of the enemy where the Hit Collisions are even when I’m not attacking. Is they anyway of stopping it taking damage unless I’m attacking?

I was thinking of switching off off the Collider until just before the mesh hits the enemy… not sure if thats a good idea though.

if you’re using an animation, use “animation events” to turn the collider on/off when as needed

Thank you so much didn’t realize I could do it that way!