Hello!
I've writing a lua-code that allows me to assign some the MADDOG 2008 buttons and switches to my controls.
-- RUD HYD CONT (OFF) if ipcPARAM == 1 then ipc.control(69775, 0) end[/font] [font=arial,helvetica,sans-serif]-- RUD HYD CONT (RUD) if ipcPARAM == 2 then ipc.control(69775, 1) end[/font] [font=arial,helvetica,sans-serif]-- FUEL XFEED (OFF) if ipcPARAM == 3 then ipc.control(69776, 0) end [/CODE][/font] [font=arial,helvetica,sans-serif]However, having to assign the different commands by entering a parameter isn't very time efficient as I have to look up what a particular number does.[/font] [font=arial,helvetica,sans-serif]Hence, I'm wondering how I would make a LUA function show up in the control list like a macro would?[/font] [font=arial,helvetica,sans-serif]PS, I'm aware that I haven't defined any functions in that code![/font]