Question about 2d slide mechanic

Hello! I am new to Unreal (Still have a lot to learn). My question is, how would I go about making a script for a slide mechanic in a 2d game? I all ready have made the flipbook for slide, and I have run, jump, and crouch animations for my sprites all ready implemented in the game through my character blueprint. I mostly focus on graphic design, but am trying to learn the programming side as well. I have searched the internet for a solution, or just a nudge in the right direction, with no luck. Any help would be greatly appreciated!