Jump to content

Any way to know if the COMMUNICATION MENU key has been pressed?


Recommended Posts

Posted

Hi there!

I'm working on a mission and I would like to know if there is a way to know if the COMMUNICATION MENU key has been pressed. I look around in the forums but I can't figure out how?

I am asking that, because I have an image on the right upper corner of the screen (just where those menus appear), so I would like to hide the image if the communication menu is on. And restore again, once the communication menu has been closed.

I know that I can use another place for the image, but the upper right corner it's the correct one (I'm flying a huey, and that's the best place for those images) 🙂

Thanks buddies!

Posted

I think it can be done, by using Cockpit Parameters/Arguments, but you will need to find the comm parameter value.

With those parameters you can detect when some switch status/position, etc had changed, in your case, comm button.

Something like:

03 SWITCHED Condition > comm parameter value changed to ON (not sure which one from condition list in ME) > PICTURE TO ALL

03 SWITCHED Condition > comm parameter value changed to OFF  > PICTURE CLEAR

Maybe someone more skilled than me can help you with cockpit parameters/arguments

Cockpit parameters conditions are in ME triggers > Conditions (scroll all the way down, they are marked with "X:")

Here is a list for A-10C, made by @Sabre-TLA

 

Otherwise, from what i know (maybe i'm wrong), pure LUA doesn't detect user keyboard input, you need a library for it.

Hope it helps

 

  • Thanks 1
Posted

A really **BIG** Thank You Sedlo!!!! 😍😍

That's perfect!! I truly appreciate your help!!!!  👍
I'm working on a civil mission for the Huey, it is called "I LOVE THIS JOB". Still got a lot of work to do, I hope it will be something completely new and very fun to flight (trying not to sound too arrogant here). Let's see if I get it right.

Again: thanks buddy, I appreciate *A LOT* the sample mission you posted!!!!

 

  • Like 1
  • Recently Browsing   0 members

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