Jump to content

env.info not working in export.lua AfterNextFrame


Recommended Posts

Posted (edited)

hi, is there any reason you can think of why this isn't working

 

AfterNextFrame=function(self)

 

 

local pitch, bank, yaw = LoGetADIPitchBankYaw()

 

env.info(string.format("pitch=%f roll=%f", pitch, bank))

... etc

 

in exports.lua?

 

i don't see pitch= in DCS.log file but i do see this

00042.548 ERROR Lua::Config: Call error LuaExportStart:[string "C:\Users\me\Saved Games\DCS.openalpha\Scripts\Export.lua"]:29: attempt to index global 'env' (a nil value)

 

 

so i guess i need to initialize env somewhere?

 

thanks

Edited by steve2112

My kit: i7-4790K@4GHz / 8GB - GTX 980ti + rift CV1 - X52 pro - Multi Keyboard Remapper - 2DOF motion sim (in development)

  • Recently Browsing   0 members

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