I make a Navigational Script with a speaker and so on, but i have a problem, i dont know how to script the calculation of the shortest way of the parts. I asked in another forum (a german mta forum) they said make the calculation with this mathematically way : http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm
But i dont have an idea how to do this in lua. If there is anyone who can help me i would be very happy
That is what i Have, i did about 1600 Points so about 4800 cordinates. for example:
Strassenkord[1] = -2271.3115234375,2351.767578125,4.48455905914311
Strassenkord[2] = -2328.15234375,2390.9033203125,5.7813405990601
Strassenkord[3] = -2360.2001953125,2348.5302734375,4.8359375
Strassenkord[4] = -2466.0283203125,2331.1083984375,4.8359375
Strassenkord[5] = -2466.01171875,2261.11328125,4.8351097106934
Strassenkord[6] = -2556.2861328125,2291.79296875,4.8359375
Strassenkord[7] = -2563.6083984375,2331.107421875,4.8359375
Strassenkord[8] = -2615.1513671875,2331.2001953125,8.203125
Strassenkord[9] = -2604.0947265625,2434.994140625,14.7265625
Strassenkord[10] = -2543.8857421875,2395.1240234375,14.697037696838
Strassenkord[11] = -2504.6064453125,2421.0869140625,16.598020553589
Strassenkord[12] = -2394.533203125,2432.2265625,10.309600830078
http://abload.de/img/baysidem5sed.png
i hope anyone can help me, thanks for any helping and sorry for me school english ^^