Munkwolf / dcs-community-keybinds

A collection of keybinds for DCS.
92 stars 27 forks source link

Possible to include a Landing Gear Down Else Up for the A10C/C2? #42

Closed Bumblefox closed 2 years ago

Bumblefox commented 2 years ago

Surprised I did not see a "Landing gear down, else up" option for the A10C/A10C2? Is it possible to add this one or is there a limitation on those modules.

Munkwolf commented 2 years ago

Hey! Sorry it's taken so long for me to respond. It should be possible. I'll have more free time available soon to do some updates and will take a look.

Bumblefox commented 2 years ago

no worries, man. I've been trying to piece it together myself and... not quite figuring it out XD

correca commented 2 years ago

In case it helps. I have tested these commands for both the A10C and the A10C II and they work correctly:

` {cockpit_device_id = devices.CPT_MECH, down = device_commands.Button_1, up = device_commands.Button_1, value_down = 1, valueup = -1, name = ('Landing Gear UP else DOWN (2-way Switch)'), category = {('Custom'), ('Landing gear panel')}},

{cockpit_device_id = devices.CPT_MECH, down = device_commands.Button_1, up = device_commands.Button_1, value_down = -1, valueup = 1, name = ('Landing Gear DOWN else UP (2-way Switch)'), category = {('Custom'), ('Landing gear panel')}}, `

Bumblefox commented 2 years ago

Rock on, man. I'll give those a try. and see if I can't wrap my head around the syntax ;3

Thank you!

--update - status labels are reversed but it works! ;D

Bumblefox commented 2 years ago

Request resolved.