GunfighterSIX Posted February 17, 2015 Posted February 17, 2015 I need help finding the "x: cockpit preform clickable action" cockpit device #, command # and value # for the deploy flares button. More specifically the "UV-26 Start dispensing button" Much like having the doors open when I land, I would like to make a trigger the deploys my flares. HHC, 229th AHB, 1st Cav Div http://1stcavdiv.conceptbb.com/
Wrench Posted April 1, 2015 Posted April 1, 2015 Bump. I'm looking for the Fuel switch so I can practice autorotaions with genuine surprise. Carrier Script.
Chump Posted April 2, 2015 Posted April 2, 2015 UV-26 buttons Start dispensing Cockpit device: 48 Command: 3007 Value: 1 (depressed) or 0 (released) Stop dispensing Cockpit device: 48 Command: 3009 Value: 1 (depressed) or 0 (released) Engine Shutoff Valve covers/switches Left cover Cockpit device: 2 Command: 3009 Value: 1 (up) or 0 (down) Left switch Cockpit device: 2 Command: 3001 Value: 1 (on) or 0 (off) Right cover Cockpit device: 2 Command: 3010 Value: 1 (up) or 0 (down) Right switch Cockpit device: 2 Command: 3002 Value: 1 (on) or 0 (off) I have attached a test mission if interested.ClickableTest.miz
uboats Posted April 2, 2015 Posted April 2, 2015 I need help finding the "x: cockpit preform clickable action" cockpit device #, command # and value # for the deploy flares button. More specifically the "UV-26 Start dispensing button" Much like having the doors open when I land, I would like to make a trigger the deploys my flares. go to cockpit folder and then find clickable.lua 1 [sIGPIC][/sIGPIC] My DCS Mods, Skins, Utilities and Scripts | Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD | | TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |
Wrench Posted April 2, 2015 Posted April 2, 2015 In clickable.lua, How do we find the command, eg 3002,3118, etc? Carrier Script.
uboats Posted April 2, 2015 Posted April 2, 2015 In clickable.lua, How do we find the command, eg 3002,3118, etc? use modelviewer to get the switch/button arg name, then you can search the name in clickable.lua to get the arg# [sIGPIC][/sIGPIC] My DCS Mods, Skins, Utilities and Scripts | Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD | | TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |
GunfighterSIX Posted April 2, 2015 Author Posted April 2, 2015 Thanks for your help guy's HHC, 229th AHB, 1st Cav Div http://1stcavdiv.conceptbb.com/
GunfighterSIX Posted April 2, 2015 Author Posted April 2, 2015 In clickable.lua, How do we find the command, eg 3002,3118, etc? Looking into it, you can also find those commands keyboard.lua for each aircraft in your saved games HHC, 229th AHB, 1st Cav Div http://1stcavdiv.conceptbb.com/
Wrench Posted April 7, 2015 Posted April 7, 2015 For the UH-1H's main fuel switch, I get this line: elements["FUEL-PTR"] = default_2_position_tumb(_("Main Fuel") , devices.FUELSYS_INTERFACE, device_commands.Button_1, 81) So I know it's #81, and 0 is off, but I still need the command number. the Perform clickable has 3 fields, and this doesn't give me that information. Carrier Script.
Chump Posted April 9, 2015 Posted April 9, 2015 UH-1H "Main Fuel" switch Cockpit device: 2 Once the switch is located in clickabledata.lua, look for what interface it is assigned to (devices.FUELSYS_INTERFACE). Find this value in devices.lua. Command: 3001 Look for the command button that it is assigned to (device_commands.Button_1). Find this value in command_defs.lua. Value: 1 (on) / 0 (off)
Wrench Posted May 8, 2015 Posted May 8, 2015 In command_defs.lua, I still dont see the 3001 string. Nor"fuelsys_interface" nor even the word fuel anywhere. Carrier Script.
Chump Posted May 9, 2015 Posted May 9, 2015 There is no actual value of 3001. In command_defs.lua, look for the device_commands table (towards the end of the file). You will see "start_command = 3000", then values set inside the table like "Button_1 = start_command + 1;" Button_1 is now equal to 3001. devices.FUELSYS_INTERFACE is found in device_init.lua.
Wrench Posted May 11, 2015 Posted May 11, 2015 Got it! Thanks for being patient with my idiotness. Carrier Script.
Recommended Posts