Hi guys I've tried everything to add EW radars but I can't, even getting all SAMs and set them like EW radars doesn't work...
this is the code I'm using
do
--Create an instance of the IADS
redIADS = SkynetIADS:create('IRAN')
---debug settings remove from here on if you do not wan't any output on what the IADS is doing by default
local iadsDebug = redIADS:getDebugSettings()
iadsDebug.IADSStatus = true
iadsDebug.samWentDark = true
iadsDebug.contacts = true
iadsDebug.radarWentLive = true
iadsDebug.noWorkingCommmandCenter = true
iadsDebug.ewRadarNoConnection = true
iadsDebug.samNoConnection = true
iadsDebug.jammerProbability = true
iadsDebug.addedEWRadar = true
iadsDebug.hasNoPower = true
iadsDebug.harmDefence = true
iadsDebug.samSiteStatusEnvOutput = true
iadsDebug.earlyWarningRadarStatusEnvOutput = true
--add all units with unit name beginning with 'EW' to the IADS:
redIADS:addEarlyWarningRadarsByPrefix('EW')
--Add all groups begining with group name 'SAM' to the IADS:
redIADS:addSAMSitesByPrefix('SAM')
--Add Command Center
commandCenter = StaticObject.getByName('C3I2-Bandar-Abbas')
redIADS:addCommandCenter(commandCenter)
--Get all SAMs
redIADS:getSAMSites():setHARMDetectionChance(100):setActAsEW(true)
--Add SA-10 point defense
local SA15B = redIADS:getSAMSiteByGroupName('SAM-SA15-002')
redIADS:getSAMSiteByGroupName('SAM-SA10'):addPointDefence(SA15B):setHARMDetectionChance(100):setIgnoreHARMSWhilePointDefencesHaveAmmo(true)
--Activate the radio menu to toggle IADS Status output
redIADS:addRadioMenu()
-- Activate the IADS
redIADS:activate()
end
I appreciate any help about it.