Presidium Posted March 23, 2022 Posted March 23, 2022 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! Youtube - Official Website
Presidium Posted March 23, 2022 Author Posted March 23, 2022 Nope, it's an IN-GAME (in cockpit) image. I used the "PictureToAll" command in the ME to show it. Youtube - Official Website
dark_wood Posted March 23, 2022 Posted March 23, 2022 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 1
Sedlo Posted March 24, 2022 Posted March 24, 2022 @Presidiumwhich aircraft are you interested in? My Youtube Channel MY DCS MISSIONS
Sedlo Posted March 24, 2022 Posted March 24, 2022 For most ED modules, you'll want an action "X:START LISTEN COCKPIT EVENT" with the EVENT number 179 and enter a flag number. Then another condition when that flag becomes true, the picture goes away. 1 1 My Youtube Channel MY DCS MISSIONS
Presidium Posted March 24, 2022 Author Posted March 24, 2022 (edited) Thank you very much to dark_wood & Sedlo!!! @Sedlo: The aircraft I'm working on is the Huey. I will try today to solve the problem. With your help and suggestions I hope to get it done!! Thanks again buddies!!! Edited March 24, 2022 by Presidium 1 Youtube - Official Website
Sedlo Posted March 24, 2022 Posted March 24, 2022 @Presidiumcheck this out, might be what you're after. huey photo.miz 1 My Youtube Channel MY DCS MISSIONS
Presidium Posted March 24, 2022 Author Posted March 24, 2022 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!!!! 1 Youtube - Official Website
Sedlo Posted March 24, 2022 Posted March 24, 2022 Good deal, looking forward to seeing it! My Youtube Channel MY DCS MISSIONS
Recommended Posts