feat(radar state): radar state is now being read from DCS and displayed as a dot (subject to change)

This commit is contained in:
MarcoJayUsai
2025-03-19 14:36:40 +01:00
parent ee15106be1
commit 18960ca51e
4 changed files with 33 additions and 3 deletions

View File

@@ -1278,9 +1278,11 @@ function Olympus.setUnitsData(arg, time)
table["isAlive"] = unit:isExist() and unit:isActive() and unit:getLife() >= 1
table["radarState"] = "AUTO"
if unit:isActive() and unit:hasSensors(Unit.SensorType.RADAR) then
-- Olympus.log:info("Unit Has Sensor Radar " .. tostring(unit:hasSensors(Unit.SensorType.RADAR)));
if unit:isActive() then
table["radarState"] = "AUTO"
if unit:getRadar() then
-- Olympus.log:info("radarState: unit active and getRadar is true, setting RED.")
table["radarState"] = "RED"