So here is my animator controller:
![alt text][1]
[1]: /storage/temp/47173-untitled-1.png
When Attack is triggered the Punch animation is played. In the punch animation when the fist if fully expanded an event is called where the enemy takes damage. However I've coded so that the enemy (another player on the server) can trigger CounterAttack to counter his attack. The problem is that I can't cancel the original player's punch! If I could cancel his punch and then change to a hitted animation (so he falls back from the counter attack) that would be great. I also must make sure that the punch is cancelled so that it does not reach the event that cause damage.
↧