Kilometers
#1

How calulate the drived km in game?
Reply
#2

Just use OnPlayerKeyStateChange when W is pressed it saves one position. When A, S, D is pressed or W is released it checks how far you drove. When A or D is pressed you need it to be called faster, due to the fact that you dont have a line that you can just calculate the length from. I hope this helps you a bit.

Cheers.
Reply
#3

Yes but how i will take that ? because when it's add to less time it's not normal
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)