Quote:
Originally Posted by Bugsy
This will display distance walked and reset to 0 when the player either presses jump or is not on the ground for whatever reason (walks off ledge etc).
If this isn't what you want, it can be tweaked. - Did you want to reset distance if player runs?
- Did you not want to reset if player walks off ledge etc and only reset when manually jumping?
|
Nope, i wont reset distance when player jump. But it doesn't matter.
Look, with this code, i get distance when
1) Player walk with button W + SHITF
2) Player walk only with button W
3) Player walk when are SQUAT
4) Player walk when SQUAT + SHITF
5) Player swimming?
If yes, so everything okay! But i have another question, when player surfing or use bhop still get distance?