steve2112 Posted January 16, 2016 Posted January 16, 2016 (edited) can anyone point me to some documentation on LoGetWorldObjects() or at least what it returns, or where to find a .lua file with a description? i know this: local o = LoGetWorldObjects() for k,v in pairs(o) do io.write(string.format("%d B %s[%s]@@%f %f %f %f##\n", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading)) end but would like to know if anything else available from LoGetWorldObjects ok, i found something here https://github.com/sprhawk/dcs_scripts/blob/master/Export.lua LoGetObjectById() -- (args - 1 (number), results - 1 (table)) Returned object table structure: { Name = Type = {level1,level2,level3,level4}, ( see Scripts/database/wsTypes.lua) Subtype is absent now Country = number ( see Scripts/database/db_countries.lua Coalition = CoalitionID = number ( 1 or 2 ) LatLongAlt = { Lat = , Long = , Alt = } Heading = radians Pitch = radians Bank = radians Position = {x,y,z} -- in internal DCS coordinate system ( see convertion routnes below) -- only for units ( Planes,Hellicopters,Tanks etc) UnitName = unit name from mission (UTF8) GroupName = unit name from mission (UTF8) } Edited January 16, 2016 by steve2112 My kit: i7-4790K@4GHz / 8GB - GTX 980ti + rift CV1 - X52 pro - Multi Keyboard Remapper - 2DOF motion sim (in development)
Fasu Posted June 13, 2022 Posted June 13, 2022 Hello, Can LoGetWorldObjects("airdromes") provide information about airport frequencies? I know this command can find the coordinates (value.LatLongAlt.Lat and value.LatLongAlt.Long), airport runway numbers (value.Heading), but I don't know how to ask for the frequencies of the airport. If not, where can I find complete documentation on this subject?
Recommended Posts