Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
I need an ACCURATE and CORRECT GetVehicleSpeed function that can return both MILES PER HOUR and KILOMETRES PER HOUR speeds. Obviously it needs to use GetVehicleVelocity.
I have searched for hours and only found bad ones that aren't accurate.
Thank you.
Posts: 790
Threads: 7
Joined: Mar 2008
Reputation:
0
The only way to make a correct one is to make it for each vehicle. There is no magic number to make it accurate for all vehicles, GTA SA vehicles weren't made with the speed limits they have in real life.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
You can get the M/S (meters/units per second) in-game. You can covert that to miles per hour or KM/H. It's do-able.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
Who said anything about top speeds or real life speeds? I certainly didn't.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
So what you're basically saying is, the units in the game are NOT equal to a real life meter? Well that's pretty darn easy to solve. Or are you saying GetVehicleVelocity is wrong?
Obviously I made this topic as I haven't got the skills to make this myself. That being said, I did Physics GCSE and therefore know a little bit about velocity and speed.