Incorrectly plays animation twice

yateam
Wed, 18 Jul 2018 15:56:40 +0000
Character & Animation

Hello, I am working with anim blueprints and got the problem which I can’t handle.

I am trying to add a hit reaction animation to third-person example project.

Here is my state machine (Locomotion):

I added Hit to it. nothing else.
My idle to hit transition:

My hit to idle transition:

Two notifies:

I added events to transitions and states.
And in my blueprint I printstring all the events:

Now everything works almost fine, except the part where the game for some reason is trying to play the hit animation for the second time. It plays it correctly for the first time and just jerks a little bit for the second time. I logged all the events:

[UE4ASP_HeroTPP_AnimBlueprint_C_1] Hit
[UE4ASP_HeroTPP_AnimBlueprint_C_1] Enter State
[UE4ASP_HeroTPP_AnimBlueprint_C_1] Start Transition
[UE4ASP_HeroTPP_AnimBlueprint_C_1] Hit Start Anim
[UE4ASP_HeroTPP_AnimBlueprint_C_1] End Transition
[UE4ASP_HeroTPP_AnimBlueprint_C_1] Fully Blended
[UE4ASP_HeroTPP_AnimBlueprint_C_1] Hit End Anim
[UE4ASP_HeroTPP_AnimBlueprint_C_1] Left State
[UE4ASP_HeroTPP_AnimBlueprint_C_1] Hit Start Anim

The last message (Hit Start Anim) is the print message when a notify fires when the animation starts.

A side question: why can’t I drag the notify (Hit End) to the last frame? It stuck in the middle of the timeline.

3 posts - 1 participant