Hello. I am using anim montage to play npc jump. Is it possible to somehow adjust the height, jump distance etc during animation montage playback?
if youre using root motion, then probably not,
what i would recommend is splitting the animation in three parts
begin jump > jump loop > land
dont use montage for jumping, instead set it up in the anim graph of the animation blueprint.
in the event graph, you can use try get pawn owner > cast to character > get character movement component > isFalling(or it might be called is in air i cant remember.) store that in a boolean variable. in the anim graph, transition from all the animations to the jump start when that boolean is true.
the transition from jump start to jump loop will be when “time remaining ratio (jumpStart)” < 0.1 OR that boolean is false.
the transition from jumpLoop to land will be when that boolean is false.
the transition from landed back to idle/walking will be when “timeRemaining ratio (land)” is less than 0.1
In the character blueprint, there is also an “OnLanded” event you can use.
The above workflow will always work regardless of the animation length or jumpheight.
In the character blueprint, if you click the character movement component you can change the jump height in there.