JG14_Smil Posted March 28, 2019 Posted March 28, 2019 (edited) Hello, I'll be starting work again on my L-39C cockpit this year and I've started learning about DCS_BIOS and Kagga's L-39ZA profile. I've started fixing copy/paste errors and populating the module's unfinished lib\L-39ZA.lua file. I have two questions: Question 1. The clickabledata/.lua uses if/then/else statements for different functions between the 39C and 39ZA. if L_39ZA then elements["START_MODE"] = default_3_position_tumb(_("Engine Start Mode Switch, FALSE START/START/COLD CRANKING"), devices.ELEC_INTERFACE, electric_commands.L39C_Command_EngineStartModeSw, 322, false, false, 1, {-1, 1}) else elements["START_MODE"] = default_3_position_tumb(_("Engine Start Mode Switch, START/FALSE START/COLD CRANKING"), devices.ELEC_INTERFACE, electric_commands.L39C_Command_EngineStartModeSw, 322, false, false, 0.1, {0, 0.2}) end Can or do I need do this within the lib\L-39ZA.lua file? Simple example please, if so. Question 2. Kagga's profile has no 3 position switch examples, so I took one from the /lib/ka-50.lua file: defineMultipositionSwitch("OP_NAV_LIGHTS", 45, 3004, 146, 5, 0.1, "Overhead Panel", "Navigation Lights 10% / 30% / 100% / Off switch") I don't have my Ka-50 loaded, so I can't check these values.. how do I get the "5, 0.1" values from the above 3 position switch examples? I hope I am clear enough for what I am asking and thanks in advance for any help. Edited March 28, 2019 by JG14_Smil
Recommended Posts