Kilometer system[+2REP]
#5

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.
Reply


Messages In This Thread
Kilometer system[+2REP] - by Larry123 - 12.09.2012, 17:03
Re: Kilometer system[+2REP] - by arvifilter - 14.09.2012, 22:45
Re: Kilometer system[+2REP] - by [DOG]irinel1996 - 14.09.2012, 23:32
Re: Kilometer system[+2REP] - by afg - 14.09.2012, 23:47
Re: Kilometer system[+2REP] - by Vince - 15.09.2012, 00:01
Re: Kilometer system[+2REP] - by arvifilter - 16.09.2012, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)