How do I get my character to be committed to the slide animation?

So right now I’m using an AnimMontage for the slide animation. Whenever I press shift (I’m using an input action called GroundSlide that’s connected to the Shift key) The animation plays, but whenever I do it, I can still jump, run, etc, when I want him to be committed to the slide in the sense that all other inputs are blocked out until the animation is over, but I also want to be able to make it where certain things can’t interrupt it, like I have this thing called a momentum jump, and whenever my character is sliding, you can press space to jump while in that slide and it’ll play a special jump animation and send you much farther and faster than a normal jump, but I haven’t started working on that, so first I need to block out all other inputs like running, jumping, etc until the animation is over. I know I can use AnimNotif’s for this, but I don’t know how to set it up blueprint wise, or anything else other than how to create the notif.
If anyone could help me out I’d really appreciate it! :smiley:

There is a lot of tutorial on Youtube about Anim Notifies : BP 3rd Person Game: Creating Animation Notifies | 22 | v4.8 Tutorial Series | Unreal Engine - YouTube Then you can use EnableInput to enable/disable inputs during the animation.

Alright! How do I find the enable input node?

Never mind, I found it in the CharacterBlueprint. Do I need to use a CastToCharacterBP in the AnimBP to connect it to the AnimNotif, or do I jut use it in the CharacterBP?

Nevermind again, I got it! Now whenever I slide I can’t run or jump until it’s over, great! Now I need to figure out how to get him to move. As it is, whenever I slide he just stands still and does it, but I need to figure out how to get him to move during the slide.

Your animation should have root motion

What do you mean? And how do I make my character move while in the slide? Right now I want it to be set up to where whenever you slide, right when you slide at the beginning of it you get a slight boost of speed, but then it slows down to slightly below the regular running speed until the end of the animation. Do you know how I can get the animation to move and to do that?

Check out : Root Motion | Unreal Engine Documentation

Well, the thing is I didn’t animate the slide animation to move forward itself, because I was under the impression that if I instead made it move in Unreal Engine with nodes and variables or whatever I need to do that, it’d be easier or better for changing the speed that the slide moves, how far it moves, and stuff like that.

So the animation itself is just staying in place because I was thinking I could make it move and set it up how I wanted where it gets a slight boost of speed then slows down until the slide is over.

You can AddImpulse to the direction you want

How do I do that? And how would I do that for whenever he’s facing right and also left (It’s a sidescroller)? Just wanting to know how I would set that up.

Or, I know how to add the impulse, but how would I make it where there’s a boost of speed, then it slows down a little it for the rest of the slide? I’m guessing I’d have to put two impulse nodes and put a delay between them, right?