yakiniku Posted July 4, 2024 Posted July 4, 2024 Hello. I'm a beginner who just started. I'm setting up the X56 controller for the FA-18. I want to assign the speed brake control to the switch (ON/OFF) on the throttle. I found the following script through ChatGPT. -- F/A-18C Speed Brake Control Script -- JOY_BTN33 control for speed brake local speedBrakeCommand = { down = 3013, -- Replace with your specific command for speed brake down (extend) up = 3014 -- Replace with your specific command for speed brake up (retract) } function update() local brakeSwitchState = get_digital_input(33) -- JOY_BTN33 if brakeSwitchState == 1 then -- Speed brake down (extend) command_once(speedBrakeCommand.down) else -- Speed brake up (retract) command_once(speedBrakeCommand.up) end end However, since the information on ChatGPT is outdated, I don't know how to apply the script to the latest version of DCS. How can I apply the script, and is the content of the script correct? Thank you for your help.
speed-of-heat Posted July 4, 2024 Posted July 4, 2024 use Release 1.0.11 · Quaggles/dcs-input-command-injector (github.com) and Munkwolf/dcs-community-keybinds: A collection of keybinds for DCS. (github.com) as a basis would be my recommendation, rather than the approach you are currently taking. and i would combine that with Joypro Holdi601/JoystickProfiler: Joystick Profiler Utility (github.com)for mapping... 3 SYSTEM SPECS: Hardware AMD 9800X3D, 64Gb RAM, 4090 FE, Virpil T50CM3 Throttle, WinWIng Orion 2 & F-16EX + MFG Crosswinds V2, Varjo Aero SOFTWARE: Microsoft Windows 11, VoiceAttack & VAICOM PRO YOUTUBE CHANNEL: @speed-of-heat
Quaggles Posted July 5, 2024 Posted July 5, 2024 (edited) Fortunately a while back ED added a way to bind the OFF state of a switch through the UI without needing to create a custom input command or use my mod. To do so you need to use the dropdown in the assignment panel and select the _OFF variant of the button, you can see how I've set up my speed brake slider here on my X-55, pressing the slider extends speedbrakes and releasing it retracts them: Edited July 5, 2024 by Quaggles 1 1
yakiniku Posted July 5, 2024 Author Posted July 5, 2024 21 hours ago, speed-of-heat said: use Release 1.0.11 · Quaggles/dcs-input-command-injector (github.com) and Munkwolf/dcs-community-keybinds: A collection of keybinds for DCS. (github.com) as a basis would be my recommendation, rather than the approach you are currently taking. and i would combine that with Joypro Holdi601/JoystickProfiler: Joystick Profiler Utility (github.com)for mapping... This tool is convenient. It took some time, but I was able to set it up. Thank you. 2 hours ago, Quaggles said: Fortunately a while back ED added a way to bind the OFF state of a switch through the UI without needing to create a custom input command or use my mod. To do so you need to use the dropdown in the assignment panel and select the _OFF variant of the button, you can see how I've set up my speed brake slider here on my X-55, pressing the slider extends speedbrakes and releasing it retracts them: I see, I just needed to select OFF. I hadn't looked closely at the settings screen. Thank you.
Recommended Posts