2D Shooting animations blend

Hello everyone !!

In an action platformer where you can shoot standing, crouching and jumping, I’m trying to make it so that, for example, if you shoot standing and in the middle of the animation you jump, continue the jump shooting animation from the frame that was before jumping. I have tried it with BledTree but it only allows floating variables and I can’t think of any other idea except a sub-state machine, but I don’t know how it works or if it is really the solution. can someone help me?

Thank you very much, greetings!!