King39 Posted December 24, 2022 Posted December 24, 2022 Hello, Trying my hand in using a trigger to set VHF FM (Comm 3) to 30.40 (or any freq for that matter). But I just can't figure out the proper setup: I know I need to use Cockpit Perform Clickable Action: I found the Cockpit device = 56 But having problems figuring out the correct Command and Value to set the radio to 30.40 MHz (taken from the clickabledata.lua file): elements["PTR-ANARC186-VHFFM-FREQ-1"] = radio_wheel(_("Frequency Selector the 1nd"), devices.VHF_FM_RADIO, device_commands.Button_9, device_commands.Button_10, 153,{-0.1, 0.1}, {157,{0.125,0.775},0.5}) elements["PTR-ANARC186-VHFFM-FREQ-2"] = radio_wheel(_("Frequency Selector the 2nd"), devices.VHF_FM_RADIO, device_commands.Button_11, device_commands.Button_12, 154,{-0.1, 0.1}, {158,{0.0,1.0},1.0}) elements["PTR-ANARC186-VHFFM-FREQ-3"] = radio_wheel(_("Frequency Selector the 3rd"), devices.VHF_FM_RADIO, device_commands.Button_13, device_commands.Button_14, 155,{-0.1, 0.1}, {159,{0.0,1.0},1.0}) elements["PTR-ANARC186-VHFFM-FREQ-4"] = radio_wheel(_("Frequency Selector the 4th"), devices.VHF_FM_RADIO, device_commands.Button_15, device_commands.Button_16, 156,{-0.25, 0.25}, {160,{0.0,1.0},1.0}) I just can't figure which one to use. Any help would be GREATLY appreciated. Thanks, John
TEMPEST.114 Posted December 25, 2022 Posted December 25, 2022 Are you trying to do this to a CLIENT in a MP server / mission? If so, you can't (for some unknown and ludicrous reason) do any cockpit or failure changes to CLIENT aircraft. If you're in SP, then I'm sorry I have no idea. I never make SP stuff.
Solution Rudel_chw Posted December 25, 2022 Solution Posted December 25, 2022 (edited) 13 hours ago, King39 said: But having problems figuring out the correct Command and Value to set the radio to 30.40 MHz (taken from the clickabledata.lua file): Hi, Don’t use clickabledata.lua for that, instead use the way explained here: best regards Edited December 25, 2022 by Rudel_chw For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar Mobile: iPad Pro 12.9" of 256 GB
Recommended Posts