Getting the "Detections"-Data from the GUI

All discussions & material related to Command's Lua interface

Moderators: angster, RoryAndersonCDT, michaelm75au, MOD_Command

Post Reply
hivzigaming
Posts: 6
Joined: Sun Jun 18, 2023 7:13 pm

Getting the "Detections"-Data from the GUI

Post by hivzigaming »

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?
hivzigaming
Posts: 6
Joined: Sun Jun 18, 2023 7:13 pm

Re: Getting the "Detections"-Data from the GUI

Post by hivzigaming »

Hi blu3s!
Thanks for your input, it was actually helpful!

Just out of curiosity:
Does the function ScenEdit_GetSensorData (https://commandlua.github.io/assets/Fun ... rData.html) give me the information about the used search/track frequencies of a specific radar?
User avatar
blu3s
Posts: 1006
Joined: Fri Jul 08, 2022 9:45 am

Re: Getting the "Detections"-Data from the GUI

Post by blu3s »

I'm afraid that this is a functionality only for the PRO version.

You can see the Search/Track frequencies in the DB viewer
hivzigaming
Posts: 6
Joined: Sun Jun 18, 2023 7:13 pm

Re: Getting the "Detections"-Data from the GUI

Post by hivzigaming »

Oh, okay. So there is no way to extract this information via Lua?
User avatar
blu3s
Posts: 1006
Joined: Fri Jul 08, 2022 9:45 am

Re: Getting the "Detections"-Data from the GUI

Post by blu3s »

No, sorry.
Post Reply

Return to “Lua Legion”