Dagger_c3 Posted May 18, 2009 Posted May 18, 2009 (edited) Hi all, while I was opening missions in Notepad++ I've noticed that there are some strange data.. [4] = { alt = 159, type = "Turning Point", action = "Rank", lat = 0.77909493104684, targets = { }, -- end of targets long = 0.68948196970086, x = -34473.906424121, speed = 18.333333333333, y = 416085.26549431, }, -- end of [4] I want to make some small programm in C# to create missions but I don't understand how this x and y are calculated (probably some math function in some of the .lua files) The lat and long are made only to put the objects in the map editor and the X and Y are to put the objects in real map. There are not any relation between those numbers because even that you put objects in top corners of the map, those numbers don't have any relation so I think that they are calculated using some maths... Anybody know how to calculate them??? Thanks in advance :) PS: My english is not the best but if you don't understand something or you want that I explain better, just ask ;) Edited May 18, 2009 by Dagger_c3 2
Dagger_c3 Posted May 18, 2009 Author Posted May 18, 2009 100 views and nobody knows?? Some developer must know it.... PD: The program that I wish to create is a random mission generator (If I'm able of course)
Chelco Posted June 6, 2009 Posted June 6, 2009 Dagger, If you could make that random mission generator, I will be eternally grateful. Sorry I can't help, but good luck. Rep added. Cheers, Real and Simulated Wars
Recommended Posts