October 13, 201510 yr Can someone help me understand how I can extract this table in Linda's lua action.lua file. I want to display the 6 nearest airports in a Lua display. 0658 [120 bytes] This area provides a table of data about the 6 nearest airports tothe user aircraft, in order nearest to furthest.This works properly in FSX with Acceleration, and should workokay in SP2 versions. It should also work in P3D. 1.4.Each entry is 20 bytes long, consisting of 4 fields as follows:0 4 bytes ICAO ID of the aircraft. If this is 3 characters onlythe 4th will be zero.4 4 bytes Latitude of the airport, in degrees, as a 32-bitFloat (N positive, S negative).8 4 bytes Longitude of the airport, in degrees, as a 32-bitFloat (E positive, W negative).12 4 bytes Altitude of the airport, in feet, as a 32-bit Float.Intl N/A16 4 bytes Distance from the user aircraft, in nm.It is only updated when the user aircraft's Latitude or Longitudechange by one minute or more. If there are less than 6 airportswithin the current "reality bubble" the unused entries will be allzero.06D0 144 Area
Create an account or sign in to comment