bnepethomas Posted November 8, 2005 Posted November 8, 2005 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
Mishel Posted November 28, 2005 Posted November 28, 2005 Try this: MyPlane = LoGetObjectById(LoGetPlayerPlaneId()) Lat = MyPlane.LatLongAlt.Lat Long = MyPlane.LatLongAlt.Long Alt = MyPlane.LatLongAlt.Alt
bnepethomas Posted November 30, 2005 Author Posted November 30, 2005 Thanks Mishel I'll give it a go Cheers Peter
Recommended Posts