guenseli Posted November 23, 2009 Report Posted November 23, 2009 I have made some little LUA and MACRO files for different aircrafts the last weeks and d'like to share them here. MACRO [MACROS] 1=L:LandingLightExtendSwitch=SET 2=L:LightRecogWhiteSwitch=SET 3=L:LightRecogRedSwitch=SET 4=L:LightRecogGreenSwitch=SET 5=L:LightRecogAmberSwitch=SET 6=L:StarterSwitch=SET 7=L:DefrosterSwitch=TOG 8=L:PrimerOn=TOGGLE 9=L:GunSightSwitchOn=SET 10=L:CabinVent=TOG code for the main fuel selector. You can select now the 4 stats OFF, AUX, MAIN, External Insert this into a LUA file -- All Fuel Selectors OFF if ipcPARAM == 1 then ipc.writeLvar("L:FuelSelKnob1State", 0) -- All Fuel Selectors AUX elseif ipcPARAM == 2 then ipc.writeLvar("L:FuelSelKnob1State", 1) -- All Fuel Selectors Main elseif ipcPARAM == 3 then ipc.writeLvar("L:FuelSelKnob1State", 2) -- All Fuel Selectors External elseif ipcPARAM == 4 then ipc.writeLvar("L:FuelSelKnob1State", 3) end All files work at my system with latest FSUIPC version. no guarantee that they will work for you (but they should, I'm sure - tested only at FSX Acceleration) Do any codings at your own risk and just do things if you know what you do... Feel free to use or add codes from/to here. Be patient that I could not support any question. Please inform yourself how to handle MACROS and LUA files and the power of FSUIPC. Have fun! ---- updated 16th dezember 2009 LUA code for main fuel selector few macro entries added
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now