Jump to content

Recommended Posts

  • 1 month later...
Posted

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

Posted
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

  • Like 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 |

Posted
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 |

Posted

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.

Posted

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)

  • 4 weeks later...
Posted

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.

  • Recently Browsing   0 members

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