- Home /
Question by
Aeneas_Ferguson · Mar 15, 2021 at 04:30 PM ·
animationanimatorattackhitanimation events
How to detect if player hits enemy half-way into an animation?
What I want to have happen is when an enemy winds up to attack, if the player hits him when that is happening, the enemy is stunned. How would I do that? Animation events can only be placed on one frame, so should I make a bunch of those over the frames that the enemy is attacking? Also, GetCurrentStateInfo returns when the animation starts and finishes, not just the middle.
Comment
Your answer
Follow this Question
Related Questions
Headbob when being hit 1 Answer
How to fix rig animation that stops short when increasing speed? 0 Answers
Animation Event Bug 1 Answer
Adding animation event at time instead of frame 0 Answers
Help implement such attacks 1 Answer