15.09.2012, 00:01
Distance = Speed x Time. Keep that in mind.
If you have a speedometer that updates every second you can use this to calculate the traveled distance. Of course, the value returned by the GetPlayerSpeed functions is in Km/h, so divide by 3600 to get Km/s. Have a global variable. Each time the timer updates, add the calculated value to this variable.
Kind of roughly explained. Hope you get it.
If you have a speedometer that updates every second you can use this to calculate the traveled distance. Of course, the value returned by the GetPlayerSpeed functions is in Km/h, so divide by 3600 to get Km/s. Have a global variable. Each time the timer updates, add the calculated value to this variable.
Kind of roughly explained. Hope you get it.

