You can add a spline component to the player character like this:
It can also be it’s own actor but let’s keep it simple. Once it’s placed, add 3 more spline points by hitting Alt while dragging a point, making 5 points in total.
Also don’t forget to add this to Begin Play:
Then you can bind the action to a custom event like this:
(You can set the default value of the variable called “Dash Distance” to a desired value, but do not adjust any other values)
Here’s the rest of the code that’s connected to Event Tick:
Call that custom event after an input action to actually trigger it.
And here’s the result:
Hope this helps!