Jump to content

Recommended Posts

Posted (edited)

Hello, 

I use this standard function (provided by the official export.lua template):

local o = LoGetWorldObjects()
for k,v in pairs(o) do
default_output_file:write(string.format(
"%.0f,%f,%f,%f,%f,%f,%d,%s\n",
t, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading, magneticVariance, k, v.Name))
end

It works fine, but in multiplayer with multiple devices it returns data from all devices.

However, I would like to obtain only the data of my aircraft, in my export log file.

I don't know how to modify the code for this.

Thank you for your help,

 

EDIT

In fact, this code seems not to work on some public servers.
However, it works if I launch a mission on my DCS in multiplayer.

In short, you have understood: what I am looking for is a code that works in all cases (and especially in multiplayer on external servers), and which only returns data from MY aircraft.

Edited by Fasu
  • Recently Browsing   0 members

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