marie_b Posted May 18, 2018 Posted May 18, 2018 Hi, I'm new in DCS World and currently writing a Lua script using the mission zones defined in the Mission Editor. I'm stuck when recovering the latitude / longitude coordinates of the zones. I just have access to the x and y coordinates. Does someone know how can I convert x and y into latitude and longitude ? Thanks for your help !
El Bastardo Posted May 18, 2018 Posted May 18, 2018 http://wiki.hoggit.us/view/Part_1#coord GeoCoord, GeoCoord, Distance function coord.LOtoLL(Vec3 point) returns point converted to latitude/longitude/altitude from Vec3. Altitude is equals to point.y. point point to convert. Only x and z matters.
marie_b Posted May 22, 2018 Author Posted May 22, 2018 Thanks for your answer. However I think we can only use this function inside the scripting engine. Does someone know how to do the same outside of the scripting engine or where to find the code of the coord.LOtoLL function?
Recommended Posts