I want to Make a SpeedOMeter but ...
#1

Hello, I want to make a SpeedOMeter but I don't know how to begin Can anybody give me some tips how count the speed in KM/h?
Maybe a Code but please no quote. If you give an example I'll really thank you, I don't want quote from another speedo ..

Thanks in advance,

- [WsR]RyDeR -
Reply
#2

d = √ ( (x2-x1)І + (y2-y1)І + (z2-z1)І )
Reply
#3

There are many speedo scripts, why not look at some of them and get some idears?
Reply
#4

Quote:
Originally Posted by paytas
There aren't many way to calculate a distance.. So look in other speedo scripts.

d = √ ( (x2-x1)І + (y2-y1)І + (z2-z1)І )
Al right Hmm this code is just crazy Can you give an example how please??
Reply
#5

Quote:
Originally Posted by [UF
Burridge ]
There are many speedo scripts, why not look at some of them and get some idears?
You're right but I understand something not: like *4 or someting :S

Sory for SPAM.
Reply
#6

To be short and simple:

- GTA SA's distance units are meters.
- Measures distance between the actual player position and the previous player position
- Do it every seconds, you obtain a speed in meters per second (m/s)
- Now to convert to km/h, in one hour there are 3600 seconds and one kilometer is 1000 meters, so you just multiply by 3.6 (3600/1000). 10 m/s = 36 km/h
Reply
#7

If you want it really precise, you would need to account for the player's posZ.
Reply
#8

Hmm Thank you, I'll try to make one.. If I have problems I'll write it here..
Reply
#9

Sory for SPAM, but paytas I want to thank you.. Thank to you I've make the SpeedOMeter With TextDraw.. I'm gona open a topic soon..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)