Jump to content

Recommended Posts

Posted

Hi everyone,

 

I've made a UFC panel for the F/A-18 - including a 3 way switch (ON-OFF-ON) for the ADF (1-OFF-2) switch. It reads perfectly in DCS switching between 1 and 2, but I'd like it to do the off (centre) position as well. I read about lua editing to make this work - but all the examples I found seemed to have a difference syntax to what I'm finding in the Hornet luas. Any lua gurus who can help me out?

 

Thanks!

Posted

I can help you, but I'm not home right now, so just send me the default.lua located in Mods\aircraft\Input\joystick\ (I think that's the correct dir)

The vCVW-17 is looking for Hornet and Tomcat pilots and RIOs. Join the vCVW-17 Discord.

CVW-17_Profile_Background_VFA-34.png

F/A-18C, F-15E, AV-8B, F-16C, JF-17, A-10C/CII, M-2000C, F-14, AH-64D, BS2, UH-1H, P-51D, Sptifire, FC3
-
i9-13900K, 64GB @6400MHz RAM, 4090 Strix OC, Samsung 990 Pro

Posted

That switch shouldn't need any lua editing. There should already be 'special for joystick' bindings for:

 

UFC ADF Function Select Switch 1/OFF

 

and

 

UFC ADF Function Select Switch 2/OFF

Asus Z690 Hero | 12900K | 64GB G.Skill 6000 | 4090FE | Reverb G2 | VPC MongoosT-50CM2 + TM Grips  | Winwing Orion2 Throttle | MFG Crosswind Pedals

Posted

Thanks very much for the help - I was assigning it as a normal button press for 1/2 and not using the "Special for joystick" bindings. Greatly appreciate the help!

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...