Jump to content

Recommended Posts

Posted

I made a server which is connected to my PCDuino. The game connects to my server and sends data just fine.

 

What I need to know is how do I import this incoming data into the Export.lua script? What is it looking for? I can send data out fine, but I can't find any example of the message sending the game to say turn on the battery power button.

 

Any info would be awesome!

Posted

The only possibility is to poll the external data out of one of the three standard call backs:

LuaExportBeforeNextFrame

LuaExportAfterNextFrame

LuaExportActivityNextEvent

Example:

LuaExportAfterNextFrame = function()

-- poll your data interface for external data (DLL, network...)

-- inject the data into DCS like: device:performClickableAction(.....

end

[sIGPIC][/sIGPIC]

  • Recently Browsing   0 members

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