JaseGill Posted December 17, 2012 Posted December 17, 2012 I'm just getting into LUA and wonder if anyone knows if one can remove all references to other controls in a LUA file. By this I mean that I have a Leo Bodnar Button Box. It currently has the AHCP and Electrical Panel attached to it. Can I remove all other references from my ButtonBox.lua script other that those that it needs and still have it work when I load it into the DCS Control settings? Also I notice that if I change the LUA script (add an up as well as down function for a single ON/OFF Toggle) if I make other control changes/additions these are lost in the script when I save it. Is that a bug or expected behaviour. I'm effectively trying to get to scripts that are as short as possible per controller, only the actual configuration used is in the script, and keep a little set of LUA scripts, per device should there be any need to reload them. Thanks in advance, J. Rig: Home Built, water cooled,i5 2500K @ 4.3Ghz, ASUS P8P67Pro Mobo, 8GB Patriot Viper 2 Sector 5 RAM, MSI Nvidia GTX970 4GB Gaming OC, 120GB OCZ Vertex 2e SSD Boot, 120GB OCZ Vertex 2e SSD Games (BS & WH), Samsung Spinpoint F3 1TB other, Samsung UE37D5000 37" LED TV,EloTouch 1600x1200 secondary, Thrustmaster Warthog No.467, Thrustmaster MFD, Saitek Pro Pedals, Track IR4 with Track Clip Pro. Ex RAF Aircrew, Real Life Pilot, proud Geek and father of one :)
Recommended Posts