Hi there all from very noob here!
RU_PlanesClientSet = SET_CLIENT:New():FilterCountries( "RUSSIA" ):FilterCategories( "plane" ):FilterPrefixes( "279th" ):FilterStart()
RU_PlanesSpawn = SPAWN:New( "AI SU33" ):InitCleanUp( 20 )
RU_AI_Balancer = AI_BALANCER:New( RU_PlanesClientSet, RU_PlanesSpawn )
local PatrolZones = {}
function RU_AI_Balancer:OnAfterSpawned( SetGroup, From, Event, To, AIGroup )
local PatrolZoneGroup = GROUP:FindByName( "RUPatrolZone" )
local PatrolZone = ZONE_POLYGON:New( "RUPatrolZone", PatrolZoneGroup )
PatrolZones[AIGroup] = AI_PATROL_ZONE:New( PatrolZone, 3000, 6000, 400, 600 )
PatrolZones[AIGroup]:ManageFuel( 0.2, 60 )
PatrolZones[AIGroup]:SetControllable( AIGroup )
PatrolZones[AIGroup]:__Start( 5 )
end
Above set of code is the very same code as in MOOSE example missions.
The question is:
I have 4 client in "279th" Su33 Group and most of times they spawn on each other. Sometimes and somehow first one rescue himself and starts patrolling in defined patrol zone which is great.
As much as i have reached and read, I have tried:
RU_PlanesSpawn = SPAWN:New( "AI SU33" ):SpawnScheduled( 60, 0.5 ):InitCleanUp( 20 ):
or
RU_AI_Balancer = AI_BALANCER:New( RU_PlanesClientSet, RU_PlanesSpawn ):InitSpawnInterval( 60,120 )
but not a chance.
Obviously i am wrong somewhere and cant figure out with DCS 2.5.5 and latest MOOSE.