I just started learning ue4 and I learned the dash mechanic from a youtube tutorial. However there is something I would like to change, how to make it so the the character can only dash when its moving and not when its standing still?
Attached below is the code snippet:
Sidenote, the youtube tutorial only calculated the speed travelled but I would also like to separate it to the speed and distance travelled. I just multiplied it as above but is there a proper to calculate the distance and speed?
Thanks for replying, but how do I check the character velocity? I tried to make an if statement, but I do not know how to call it, I tried an if (GetActorForwardVector.Value != 0), but its showing me an error