TOViper Posted April 19, 2022 Share Posted April 19, 2022 Hi folks! With the trigger condition "X: COCKPIT INDICATION TEXT IS EQUAL TO" I can check for a certain value shown on a indicator. On the Viggen's data panel for example, with this condition I can check if for the most right digit a "2" was entered, this works fine. But in fact I want to check what number the user has typed in, so I have to use a script to determine the number. Is this possible with LUA code as well? After half an hour of searching I am still not able to find this certain information in the sources I currently use (DCS manual, Forum, Google). Thanks for any hint! TOViper Visit https://www.viggen.training ...Viggen... what more can you ask for? my computer: AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1 Link to comment Share on other sites More sharing options...
PravusJSB Posted May 2, 2022 Share Posted May 2, 2022 Im almost certain you could do what you wanted in a single player mission, but not in multiplayer. 1 Creator & Developer of XSAF ::An AI model that wants to kill you, and needs no help from humans. Discord: PravusJSB#9484 twitch.tv/pravusjsb https://www.patreon.com/XSAF https://discord.gg/pC9EBe8vWU https://bmc.link/johnsbeaslu Work with me on Fiverr: https://www.fiverr.com/pravusjsb Link to comment Share on other sites More sharing options...
TOViper Posted May 3, 2022 Author Share Posted May 3, 2022 No plans for MP, so it would be great to know if it works in SP and how. Currently I have no clue ... Visit https://www.viggen.training ...Viggen... what more can you ask for? my computer: AMD Ryzen 5600G | NVIDIA GTX 1080 Ti OC 11GB | 32 GB 3200 MHz DDR4 DUAL | SSD 980 256 GB SYS + SSD 2TB DCS | TM Warthog Stick + Throttle + TPR | Rift CV1 Link to comment Share on other sites More sharing options...
Jagohu Posted May 17, 2022 Share Posted May 17, 2022 Not that I found unfortunately. What you can do is set the trigger in the ME to read something and execute a script with that. Cumbersome, but it works. 1 Link to comment Share on other sites More sharing options...
PravusJSB Posted May 29, 2022 Share Posted May 29, 2022 Yea the above would work fine but it's been a long time since I played with that and I can't recall how to do it however, you would need to be confident with Lua and to use a Hook on the backend to enable you to do it dynamically with code. Creator & Developer of XSAF ::An AI model that wants to kill you, and needs no help from humans. Discord: PravusJSB#9484 twitch.tv/pravusjsb https://www.patreon.com/XSAF https://discord.gg/pC9EBe8vWU https://bmc.link/johnsbeaslu Work with me on Fiverr: https://www.fiverr.com/pravusjsb Link to comment Share on other sites More sharing options...
Bailey Posted May 30, 2022 Share Posted May 30, 2022 (edited) Yes, it’s possible. You can read args, indications, cockpit values, etc. See list_indication and list_cockpit_params for examples. https://dcs-bios.readthedocs.io/en/latest/lua-console.html This is how, for example, I have “weapons” for the UH-60 UN Campaign based on the animation argument of a cockpit switch. You can download it from ED user files and take a look at the scripts in mission one to see how. Edited May 30, 2022 by Bailey DCS VoiceAttack Profiles | My Mods and Utilities on ED User Files | DiCE: DCS Integrated Countermeasure Editor DCS Update Witching Utility | DCS-ExportScripts for Stream Deck Community Github Library Link to comment Share on other sites More sharing options...
Recommended Posts