function LuaExportActivityNextEvent(t) t = t + 0.1 gTickCount = gTickCount + 1 local lDevice = GetDevice(0) if type(lDevice) == "table" then local myInfo = LoGetSelfData() if myInfo.Name ~= gCurrentAircraft then gCurrentAircraft = myInfo.Name if gCurrentAircraft == "A-10C" then dofile("'Scripts\ExportAVION.lua'")-- dofile A10 elseif gCurrentAircraft == "Ka-50" then dofile("'Scripts\ExportKA.lua'") elseif gCurrentAircraft == "P-51D" or gCurrentAircraft == "TF-51D" then dofile("'Scripts\ExportAVION.lua'") elseif gCurrentAircraft == "Mi-8MT" then dofile("'Scripts\ExportMI8.lua'") else -- Unknown aircraft; assume Flaming Cliffs dofile("'Scripts\ExportAVION.lua'") end end else -- Unknown aircraft; assume Flaming Cliffs -- dofile FC3 end return t end