How 2 make player's pawn do dash in c++?

so I’m trying 2 make my 1st game and I’m total newbie in ue4
I’m trying 2 base it on dashes, howevr I couldn’t google out how 2 code them and all I found was blueprints :<
I created a pawn and I’m trying 2 code dash right on [D], right click and right arrow input and dash left on [A], left click and left arrow input
just simple dash - quickly moving and stopping aftr some distance
could some1 pls show me how 2 code it?

btw if I’m planning 2 make the pawn kill enemies while dashing, wouldn’t it b bttr 2 use character instead of pawn?

If you can’t manually translate a blueprint example into C++ then you should probably stick with blueprints, particularly because you said you’re new to UE4 and this is your first game. Don’t make life difficult for yourself!

If you still want to get started with C++ in UE4, you should definitely have done the introduction tutorial here:

If it proves too much, blueprints are not inferior - in fact they are much better for rapid prototyping.

Good luck!