October 29, 201213 yr Author Hey Bob, thanks for the Autoignitions! Funny thing I fiddled out also this weekend some more code: Autoignition as a toggle on / off switch (both switches in sim are toggled atonce): ipc.sleep(200) ipc.control(66717, 1) ipc.sleep(200) ipc.control(66717, 2) ipc.sleep(200) Autofeather On / off switch: ipc.sleep(200) ipc.control(66297, 1) ipc.sleep(200) REMEMBER: all these Luas in this thread should also work in the B200 I use them all for both planes!!! Best regards,
October 29, 201213 yr andy yes that is what is so awesome, as you can use either FSUIP parameters, FSX parameters or Lvars, so between those you surely will get an item to do what you want to do. tim111 I see I actually did have the oxygen switch in my lua script. [L] LVar toggle: ASD_SWITCH_MASK_OXYGENE_PILOT = 0 [L] LVar toggle: ASD_SWITCH_MASK_OXYGENE_PILOT = 1 --12 OXYGEN System ---- OXYGEN MASK PILOT OFF ipc.display ("PREPARE SHUTDOWN!\n--------------------------\n-") ipc.sleep(200) ipc.display ("PREPARE SHUTDOWN!\n--------------------------\n-Oxygen Mask:") ipc.sleep(1000) ipc.writeLvar("L:ASD_SWITCH_MASK_OXYGENE_PILOT",1) ipc.sleep(200) ipc.display ("PREPARE SHUTDOWN!\n--------------------------\n-Oxygen Mask: SET OFF") ipc.sleep(1200) the LVAR for the copilot switch [L] LVar toggle: ASD_SWITCH_MASK_OXYGENE_COPILOT = 1 [L] LVar toggle: ASD_SWITCH_MASK_OXYGENE_COPILOT = 0
January 8, 201313 yr For those who haven't been up to the task yet yet, you'll find that this should do that trick... Instructions: 1. Go to the Modules folder of your FSX directory (where FSUIPC would be located). 2. Create a new text file in that folder and paste the code found below. 3. Name the file: BE90_cold_dark.lua 4. In FSX, open the FSUIPC menu and assign an unused key combo to "Lua BE90_cold_dark". ipc.sleep(200) ipc.writeLvar("L:ASD_SWITCH_INVERTER", 0) ipc.sleep(200) ipc.control(66701, 0) ipc.sleep(200) ipc.writeLvar("L:ASD_SWITCH_ELEV_TRIM",1) ipc.sleep(200) ipc.writeLvar("L:ASD_SWITCH_VENT_BLOWER",-1) ipc.sleep(200) ipc.writeLvar("L:ASD_SWITCH_RUDDER_BOOST",1) ipc.sleep(200) ipc.writeLvar("L:ASD_SWITCH_EFIS_POWER",0) ipc.sleep(200) ipc.control(66488, 1) ipc.sleep(200) ipc.control(66489, 1) ipc.sleep(200) ipc.control(66374) ipc.sleep(200) ipc.control(65767,-16383) ipc.sleep(200) ipc.control(65778) ipc.sleep(200) ipc.control(66535) ipc.sleep(200) ipc.display("Cold and dark script complete") ipc.sleep(3000) Hi. first of all thanks for your work on this, i have a problem, I did everything you've said but when i press the key combo and the window pops up that everything is done, i still battery ON both GEN ON how can i fiy this? is it becasue i have the default cessna flight which is a cold adn dark situation? OK i found out if i start the flight with the default cessna engine on and switch to the Beech the script works, but if i use my saved cold and dark situation file its not. Thanks again huge help this script:)
January 8, 201313 yr Author Hypo, do you have a Cold & Dark KingAir cockpit before you start the script, I mean are BAT and GEN 1 + 2 in OFF position after loading the KingAir before you start that script? With your script these could be toggled on as they were off before. This is the script I use for the C90B & B200, I also have a complete cold & dark C172 as default flight loaded, in my King Air the BAT and GEN switches are in off position allready without that script: ipc.sleep(200) ipc.control(66717, 1) ipc.sleep(200) ipc.control(66717, 2) ipc.sleep(200) ipc.writeLvar("L:ASD_SWITCH_INVERTER", 0) ipc.sleep(200) ipc.control(66701, 0) ipc.sleep(200) ipc.writeLvar("L:ASD_SWITCH_VENT_BLOWER",-1) ipc.sleep(200) ipc.writeLvar("L:ASD_SWITCH_EFIS_POWER",0) ipc.sleep(200) ipc.display("King Air cold and dark") ipc.sleep(3000) Cheers! Best regards,
Create an account or sign in to comment