Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Distance between Items?

The general place to discuss MOD''ing Freelancer!

Post Thu Apr 10, 2003 8:02 pm

Distance between Items?

hi there!

is there a way to calculate the distance between "units" - such as docking rings, tradelanes, jumpgates etc.

cause what i really would like to see was some sort of "über-cargo-calculator"

eg, take the distance between the docking ring and the tradelane, divide it by 200 if the distance is below 3k and by 300 if its above and stuff like this.

unluckily i got zero knowledge of programming, the only thing i could do was writing a php site (given theres a provider that offers sql&php for free), but not reading data from the inis nor storing it into a file...

any help is greatly aprreciated

Post Fri Apr 11, 2003 8:49 am

sqr((x2-x1)**2 + (y2-y1)**2)

Post Fri Apr 11, 2003 12:25 pm

Don't forget the Z-coordinates.

d = SQRT((x1 - x2)^2 + (y1 - y2)^2 + (z1 - z2)^2)

Return to Freelancer General Editing Forum