Getting the "Detections"-Data from the GUI
Posted: Tue Jul 25, 2023 8:53 am
Hello everyone,
I have already successfully asked a question about Lua on the forum and am hoping for your expertise again:
I have an F-35A Lightning II flying through an area with multiple enemy detection radars, all of which are active. The F-35's AN/ASQ-239 Barracuda ELINT system is successfully detecting the enemy emitters one by one, as can be seen in the "Detections" window on the right side of the GUI.
Now to my question: I would like to use LUA to find out how many of these emitters are detected within defined time intervals and store them in some kind of table. The table would contain the time intervals t, 2t, 3t, ... in one column (with t as a defined time step) and in the column next to it the corresponding number # of emitters detected during said time step. The result should be a kind of histogram of the simultaneously detected emitters in time resolution.
I have not been able to find a function in the API documents that allows me to read the information from the "Detections" window on the right side of the GUI screen.
I have seen that there is a trigger called "UnitDetected" but it only triggers once when the emitter is detected and classified for the first time. What I need is something that constantly checks if the emitter is detected.
I also looked at the "ScenEdit_GetContacts(side)" function, which shows if an enemy unit has been detected, but no longer shows in real time if it is still detected.
Do you have any idea how to implement this?
I have already successfully asked a question about Lua on the forum and am hoping for your expertise again:
I have an F-35A Lightning II flying through an area with multiple enemy detection radars, all of which are active. The F-35's AN/ASQ-239 Barracuda ELINT system is successfully detecting the enemy emitters one by one, as can be seen in the "Detections" window on the right side of the GUI.
Now to my question: I would like to use LUA to find out how many of these emitters are detected within defined time intervals and store them in some kind of table. The table would contain the time intervals t, 2t, 3t, ... in one column (with t as a defined time step) and in the column next to it the corresponding number # of emitters detected during said time step. The result should be a kind of histogram of the simultaneously detected emitters in time resolution.
I have not been able to find a function in the API documents that allows me to read the information from the "Detections" window on the right side of the GUI screen.
I have seen that there is a trigger called "UnitDetected" but it only triggers once when the emitter is detected and classified for the first time. What I need is something that constantly checks if the emitter is detected.
I also looked at the "ScenEdit_GetContacts(side)" function, which shows if an enemy unit has been detected, but no longer shows in real time if it is still detected.
Do you have any idea how to implement this?