Jump to content

Recommended Posts

Posted

Feeling kind of stupid here, but is there a way to export just your own Lat/Longs using LUA?

 

I've explored LoGetWorldObjects, this returns an array with lots of info, where if you search for 'me' you'll find your co-ordinates.

 

Whilst I could do the filerting on the program that is receiving the values, my preference is to only send my co-ordinates (I'm not writing an AWAC program, just something to drive a GPS for my aircraft).

 

any ideas? (LoGetroute is nice but doesn't tell me directly where I am)

 

TIA

 

Peter

  • 3 weeks later...
Posted

Try this:

 

 MyPlane = LoGetObjectById(LoGetPlayerPlaneId())
 Lat = MyPlane.LatLongAlt.Lat
 Long = MyPlane.LatLongAlt.Long
 Alt = MyPlane.LatLongAlt.Alt

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...