memento10 Posted September 6, 2010 Share Posted September 6, 2010 Could somebody please verify I have the right Lua code for turning on the VHF-1 and VHF-2 power on the right side panel? Having trouble getting these switches to work. [242] = {TwoPositionSwitch, 49, 5, 1}, -- VHF1 [243] = {TwoPositionSwitch, 48, 11, 1}, -- VHF2 Thanks again. Link to comment Share on other sites More sharing options...
C6_Hellfrog Posted September 6, 2010 Share Posted September 6, 2010 from clickabledata.lua that's here : elements["COMM-PWR-UKV-1-PTR"] = {class = {class_type.TUMB,class_type.TUMB}, hint = LOCALIZE("VHF-1 (R828) power switch"), device = devices.R_828, action = {device_commands.Button_5,device_commands.Button_5}, arg = {285,285}, arg_value = {-direction*1.0,direction*1.0}, arg_lim = {{0, 1},{0, 1}}, use_OBB = true, updatable = true} elements["COMM-PWR-UKV-2-PTR"] = {class = {class_type.TUMB,class_type.TUMB}, hint = LOCALIZE("VHF-2 (R-800) power switch"), device = devices.R_800, action = {device_commands.Button_11,device_commands.Button_11}, arg = {286,286}, arg_value = {-direction*1.0,direction*1.0}, arg_lim = {{0, 1},{0, 1}}, use_OBB = true, updatable = true} Link to comment Share on other sites More sharing options...
memento10 Posted September 6, 2010 Author Share Posted September 6, 2010 Yes, those are the lines I pulled the data from, can someone with working switches confirm the code and that they're working properly? Link to comment Share on other sites More sharing options...
Recommended Posts