Jump to content

DCS Lua Export and socket question


bpremus

Recommended Posts

Hello,

I apologise if there is already an answer in this forum that i could not dig out :)

 

I am exploring DCS export via lua script for a simple project,

my goal is to capture data in real time from DCS (this part works fine) but also to input

some data back in, in example joystick and throttle movement.

 

If i am correct, LuaExportBeforeNextFrame and LoSetCommand should do just that,

however setting anything with LoSetCommand in LuaExportBeforeNextFrame does nothing on my side

 

even this hard-coded sample

 

function LuaExportBeforeNextFrame()

-- Works just before every simulation frame.

LoSetCommand( 3, 0.25) -- rudder 0.25 right

LoSetCommand( 64 ) -- increase thrust

LoSetCommand( 8 ) -- External view

end

 

Area there some kind of restrictions, or there is an other lua script that DCS uses for input?

 

Thanks

AMD FX 8350 4.0Ghz, 16gb DDR3, MSI R9 390, MS FF2 & CH Throttle PRO, track IR 4 & Lenovo Explorer VMR

Link to comment
Share on other sites

  • Recently Browsing   0 members

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