mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
chore: removed useless code
This commit is contained in:
@@ -1077,27 +1077,6 @@ function Olympus.setOnOff(groupName, onOff)
|
||||
end
|
||||
end
|
||||
|
||||
-- Disable the AI of a group on or off entirely
|
||||
function Olympus.setRedGreenAuto(groupName, redGreenAuto)
|
||||
Olympus.debug("Olympus.setRedGreenAuto " .. groupName .. " " .. tostring(redGreenAuto), 2)
|
||||
local group = Group.getByName(groupName)
|
||||
if group ~= nil then
|
||||
|
||||
if redGreenAuto == 'RED' then
|
||||
group:getController():setOption(AI.Option.Ground.id.ALARM_STATE, AI.Option.Ground.val.ALARM_STATE.RED)
|
||||
end
|
||||
|
||||
if redGreenAuto == 'GREEN' then
|
||||
group:getController():setOption(AI.Option.Ground.id.ALARM_STATE, AI.Option.Ground.val.ALARM_STATE.GREEN)
|
||||
end
|
||||
|
||||
if redGreenAuto == 'AUTO' then
|
||||
group:getController():setOption(AI.Option.Ground.id.ALARM_STATE, AI.Option.Ground.val.ALARM_STATE.AUTO)
|
||||
end
|
||||
Olympus.debug("Olympus.setRedGreenAuto completed successfully", 2)
|
||||
end
|
||||
end
|
||||
|
||||
function getUnitDescription(unit)
|
||||
return unit:getDescr()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user