Simon1279 Posted December 21, 2016 Posted December 21, 2016 I'm trying to implement on my mission something like: On the spitfire's radio you have 4 channel buttons A, B, C and D. Now i would like to open ATC menu by pressing let's say the D channel button on my radio. Is this possible using X:Cockpit in set rule for triggers? If not how can i do it? If yes what should i do? It's all of the morning long, i'm trying to find a solution but sadly no clue Thanks in advance [sIGPIC][/sIGPIC] I7 8700K @ 4.9 ghz, SSD 850 evo, MSI Z370 Gaming Pro, GTX 1080Ti, F/A-18C in the garage, F-16C in the backyard, F-14B in the garden
Redglyph Posted January 5, 2017 Posted January 5, 2017 I think the general idea is the same as here: https://forums.eagle.ru/showthread.php?p=2466551 1) You could have a continuous trigger checking for this button with a condition X:COCKPIT ARGUMENT IN RANGE, for that you need the "argument" which you can find in this file: Mods\aircraft\SpitfireLFMkIX\Cockpit\Scripts\clickabledata.lua The easiest is usually to hover your mouse, wait for the tooltip then search it in the file above. Here with the Spitfire it's slightly more complicated, the tooltip content is indirected from another file, so you can check your joystick input file, or the default one, or simply seach in the clickabledata.lua. In this case, it must be this line: elements["RCTRL_D"] = radio_channel_button(_("Cockpit.SpitfireLFMkIX.radio_d"), devices.VHF_RADIO, device_commands.Button_5, 119) So you must trigger on this argument 119, I haven't tested but it looks like the value should be 1. Obviously you need to temporarily disable this trigger once it fired, with a separate flag. 2) To perform the action of opening the communication menu, you must perform a X:COCKPIT PERFORM CLICKABLE ACTION, there's some info on that in the DCS manual, for ex. pg 93-99, it's worth the look to know what's possible. Check also this thread. Not sure how to find the command ID, what they say in the manual about that doesn't seem to work anymore (setting OPTIONS_ADD_COMMAND_CODES_TO_TOOLTIP to true). Here it seems all the aircraft are modelled on the P-51 for this "push-to-talk" command, and on the Mustang there is a "elements["pnt_44"] = default_button(_("Microphone On"),devices.CPT_MECH,device_commands.Button_1,44)", so perhaps it's simply 3001? Otherwise you'll have to search this one. :) Not sure about the device either. Just a few hints, but I hope it'll help a bit. System specs: Win7 x64 | CPU: i7-4770K | RAM: 16 GB | GPU: GTX 980 Ti 6 GB | Thrustmaster HOTAS | MFG rudder pedals | SATA3 SSD | TrackIR
Recommended Posts