Thank you, I tried to express it in English.
Hi guys, I would like to write an AI_A2G_DISPATCHER script as follows:
DetectionGroup = SET_GROUP:New():FilterPrefixes( {"ZhenChaji", "HQ BLUE", "Reccc"} ):FilterCoalitions("blue"):FilterStart()
Groundetection = DETECTION_AREAS:New( DetectionGroup, 2000 )
:CalculateIntercept(DetectedItem)
:SetFriendliesRange( 60000 )
:SetRefreshTimeInterval( 5 )
:SetIntercept(true, 5)
:DetectedReportDetailed(AttackGroup)
Groundetection:Start()
---
A2GDispatcher = AI_A2G_DISPATCHER:New( Groundetection )
A2GDispatcher:SetCommandCenter( CC )
--
A2GDispatcher:AddDefenseCoordinate( "HQ", GROUP:FindByName( "HQ BLUE #006" ):GetCoordinate() )
A2GDispatcher:AddDefenseCoordinate( "HQone", GROUP:FindByName( "HQ BLUE #005" ):GetCoordinate() )
CCCPBorderZone = ZONE_POLYGON:New( "zone one", GROUP:FindByName( "HFDMBianjie" ) )
A2GDispatcher:SetBorderZone(CCCPBorderZone)
A2GDispatcher:SetDefenseReactivityHigh()
A2GDispatcher:SetDefenseRadius(100000 )
A2GDispatcher:SetIntercept(180)
----
DetectedItem is required.
But my first contact with this thing,
I don't know how to write, or how to get DetectedItem.
I've tried several methods, but none of them are right,
can someone help me?