Montage not switching back after other mont plays

I’ve been struggling with this since I’ve started using UE4 Editor. I’ve gotten so frustrated I’ve bought or made basic animations of my own to use in place of trying to use montages. I’m really limiting what I can do though, not using multiple montages so I’m asking for help.

This might be difficult to explain. I’ll add a video later but for now see if you can follow and offer some advice:

I’ll give an example, but this can be applied to many scenarios.
example Scenario:

  • I have running and walking/strafing pistol animation blendspaces working just fine. (when the pistol is equipped and drawn). When the pistol is equipped and NOT drawn, the hands are down as if unarmed but the pistol is there because its snapped to the hand… when “combat” mode is pressed, the pistol drawn set comes into play… no problems. Aim offset works fine…unarmed and with the pistol drawn
  • Now… I DON’T have a pistol DRAWN while crouch animation… this is an issue, because when combat mode is pressed, the character still walks or sits crouched with the hands at the side… so the gun fires but it comes from the muzzle which is at the side… plus it just looks dumb.
  • What I’ve done to resolve this is… I put the standing pistol drawn animation into a montage with a default slot called upperboddyPistol. Now in my animgraph, im blending this by bone…spine area… with that slot providing crouch is pressed, pistol equipped and combat mode is on and likewise in charBP, when crouch is pressed, pistol equipped and combat mode on, it plays indefinitely the pistolDrawn montage.
  • Now this works… so when I’m crouched, he’s aiming the pistol since the top half is taking the animation from the standing one, but the legs are crouched. It also looks natural…yay

THE ISSUE

  • lets say I’m crouch walking with my pistol drawn and i get shot…which then triggers a “hit reaction” montage that plays just once and lets say I’m also using the top part of this animation because it’s normally standing… so theres another upper slot for this montage as well in the animgraph that happens when hit. This plays just fine as well and looks great BUT after it finishes playing… the original montage doesn’t kick back in again!!. Meaning now my gun is pointing at the floor but im still in combat mode! (to make matters worse, in the animGraph, its still showing the asks to be TRUE and the pose SHOULD be set but because it’s not RE-Triggered in the character BP it doesn’t show. I can stand and it looks drawn again… and then if i crouch it stays drawn but obviously thats not a solution.

So it looks to me like even though the asks are TRUE in animgraph and i set the montage to play indefinitely (unless crouch or combat mode or pistol equipped is turned off), it stops playing when another montage starts and doesn’t resume afterward.

I tried playing with timers to start the indefinite one after the original, but it doesn’t work right… theres always a second or two where it looks unnatural.

Hopefully that explains it well enough.
Any help is appreciated. Again, I know the animgraph is set up right, and the TRUE pose stays on even after the second montage plays, so im assuming it’s because the montage that was playing indefinitely is stopped, it doesn’t know to continuously play. Is there a way to set it so it always runs when the variables are true but gives priority to another and continues when the “another” stops playing?

Why do you have the standing pistol animation in a montage in the first place? You can blend the animation directly into the layered blend per bone.

wow… thats a good question.

The answer is I swear that was NOT an option when I first started with this in 4.3. I’m certain of it. I would have been doing that all along. It must have got added over the updates?

I just tried adding an animation directly to the animgraph and it worked. just… wow.

Though to be fair it “appears” to not work when trying right now since i was trying to drag it into a comment box theres an error. I might have even tried this and assumed it wasnt supported because of the error sigh
see image

Anyway,
Thank you!

cant seem to mark your post as the answer.

uhm… my original reply to you disappeared

it worked. thanks. im pretty sure you never used to be able to use animations directly in the animgraph… i tried before.

cant mark your reply as the answer

Cool. I’ve converted it to an answer below if you want to mark it as answered.