How to add sliding ability

In order to add sliding, recreate this blueprint inside BP_CharacterBase



What this does is basically:
-Do a linetrace in front of the character 
-Check if CTRL is key being held, and character is moving, but not in the air
-DoOnce (to prevent it from stacking up)
-Play montage for the character mesh (melee unarmed at 0.5 speed used in this tutorial)
-Use a timeline to lerp the current location to where ever the linetrace ends
-After timeline is finished, reset the DoOnce
-Crouch is there to make the capsule smaller
-Camera gets moved down when sliding, but by the same amount gets moved up when sliding ends


Special thanks to Allen from Discord for sharing an alternative way for sliding that’s montage based. Add this to the existing Crouch logic: