Jump to content

Trigger when player tuned to a specific frequency?


Recommended Posts

Posted

I see the LUA file for the clickable cockpit goodies and I see the KY-58 under intercom. Mode, volume, fill, and power are all there.  I am assuming it would be something like KY58_PowerSw, and KY58_ModeSw for those 2 switches. I guess the only thing is to figure out which of those values is for the power on and which is cypher mode.

Capture1.JPG

Former SSG US Army

UH-60A/L/M Crewchief

"2 To Fly!"

Posted

Yeah.. open up model viewer, and load the F-16.. It's the file in mods/aircraft/f-16/cockpit/shapes

Then find argument 444 and move the slider.  Note the position of the switch and the corresponding value.  It'll be likely something like 1.0 = Plain, .80 = Cipher, etc  * not the real values, use model viewer to note the precise values.

Then in the ME, in your conditions X:COCKPIT ARGUEMENT IN RANGE.   Put the values in like -0.5 to -.025 and then your action.

null

image.png

Posted (edited)

The pilots body, helmet, visor and O2 mask are all in the way of seeing anything Lol Any way to remove that?

Edited by H60MTI

Former SSG US Army

UH-60A/L/M Crewchief

"2 To Fly!"

Posted (edited)

Arg 540 for those anyone interested remove body and helmet on the F-18.

 

This model viewer is cool. I'm going to have some fun with this.

Edited by H60MTI
  • Like 1

Former SSG US Army

UH-60A/L/M Crewchief

"2 To Fly!"

Posted
3 hours ago, H60MTI said:

Is there a cockpit param on the F-18C for the KY-58 power select knob and the mode knob?

 

KY-58 Power Select Knob, OFF/ON/TD : Argument 447, values 0: OFF, 0.1: ON, 0.2: TD

KY-58 Mode Select Knob, P/C/LD/RV : Argument 444, values 0: P, 0.1: C, 0.2: LD, 0.3: RV

 

3 hours ago, H60MTI said:

Also, is there a place to find these cockpit parameters, a list or something?

 

I extracted the above from the clickabledata.lua file, on the following folder: C:\Program Files\Eagle Dynamics\DCS World 2.9.6\Mods\aircraft\FA-18C\Cockpit\Scripts

 

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

Posted

Yeah, I kinda have it figured out, just tweaking it to work right. I have X:COCKPIT ARGUMENT IN RANGE (444, 0.098, 0.12) and then it plays what I want it to play. Couldn't find a way to make it so that the two knobs had to be set right then have what I want play. but, I always turn the power on first then mode. Just wish the KY-58 actually did something in game.

Former SSG US Army

UH-60A/L/M Crewchief

"2 To Fly!"

Posted
2 hours ago, H60MTI said:

Couldn't find a way to make it so that the two knobs had to be set right then have what I want play. but, I always turn the power on first then mode.

 

You can test each knob on separate triggers, and if their respective knob is in the correct position set a knob flag to true. Then the trigger that plays tests for both flags to be true rather than the argument of each knob, this way it won't matter which control is operated first.

 

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

Posted

That's what I tried at first to no avail. I've give it a shot again. I do have to find a way to turn the volume up on the sound I have. Once the jet is going it's not loud enough. 

Former SSG US Army

UH-60A/L/M Crewchief

"2 To Fly!"

  • 4 months later...
Posted

Hi
I need a parameter for R-863 for Mi-24.
The VHF_AM_FREQ parameter just doesn't work or I'm doing something wrong. R-823 is working fine.
Thank you for the answer.

  • Recently Browsing   0 members

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