Home › Forums › Avionics & Controls › Help With Button Commands › Reply To: Help With Button Commands
Deprecated: Function wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /home/anelson/domains/ontheglideslope.net/public_html/wp-includes/functions.php on line 5414
I think this might help you both. I use the fly with lua plugin. You can get it here for xp11 and it works with the current beta. ( http://forums.x-plane.org/index.php?/files/file/35579-flywithlua-for-x-plane-11-and-10-windows-linux-mac-os-x-version/) This will enable you to create a file or I have enclosed my file to use your switches in the aircraft without using xplane joystick settings.
Then what I did was
- In the flywithlua/scripts folder I created a lua file and it will work with the c172 only.
- With the plugin enabled, in xplane go to plugins flywithlua Macros and show the joystick numbers.
- when you flip the switch you want, on the top left it will show button no (your number) was pressed or released. That is your button on you panel.
4. On the picture I attached it you look at I have shown my switch number. You want to change the number 2 to what you number is, save the file and your done. Drop it into the scripts folder and your in business.
5. Now I have created a file for the entire c172 or you can just use it for the avionics switch. To use it for just the avionics switch, delete all the others just keeping the two highlighted or change all the numbers to in the others to your switch numbers.
6. If anyone has any issues you can let me know and I will help you out. I could not upload here so I uploaded to dropbox for download.
https://www.dropbox.com/s/3cno9v1y24kscfy/C172_Panel.lua?dl=0
Hope this helps everyone
Tony S.