mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
feat(radar state): radar state is now being read from DCS and displayed as a dot (subject to change)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user