I am trying to make my own crouch function, however, after playing the crouching montage, before getting in the Crouch state machine, the characters jumps back upwards and the gets back down and blends in with the state machine…
How do I obtain a smoot blend between the two without this jaggy movement?
EDIT: The montage is there because I am not using UE crouch function and I want a custum animation to play when the character is going from standing to crouched. Probelms:
-The montage doesn’t blend with the crouch position
-The State Machine isn’t blending between idle and walk
The montage is there for what purpose?
Explain a bit better what you’re trying to do with the montage, since usually with just a crouch state machine you’re good to go.
The montage is there to make a smoother transition to avoid UE blending problems since I want the animation that goes from standing to crouch to be in a certain way.
You could have CrouchStart → CrouchLoop → CrouchEnd state machine to do that.
If you’re using the montage on the lower body you can always use Layered blend per bone to solve that.
Anyway I think that you can use an AnimNotify within the montage to trigger the blend ( with a boolean or whatever you want ) with the crouch state machine, so that as soon as the montage ends, you’ll already be in the crouch state machine.