shilka Posted March 31, 2011 Posted March 31, 2011 can I export switch states using export.lua? So far I din't find any clue inside export.lua
ClearDark Posted April 1, 2011 Posted April 1, 2011 You sure can. By figuring out the ID of the switch (peeking in the Scripts\Aircrafts\A-10C\Cockpit\mainpanel_init.lua, device_init.lua and clickabledata.lua). With that you can query the main panel device in lua and retrieve the current state of the mentioned switch. I will try to provide a simple lua example soon :)
shilka Posted April 1, 2011 Author Posted April 1, 2011 That would be great! A simple example showing the syntax would be sufficient. I also have problem with LoGetMechInfo(). Simply can't get it to work under BS. Was trying to get gear states.
Gadroc Posted April 1, 2011 Posted April 1, 2011 Shilka, There are several examples of how to do this on the forums. Check some of my back posts as I explain how to read the clickabledata.lua files to get the information you need.
Recommended Posts