Jump to content

Recommended Posts

Posted

I'm trying to create a very basic BVR practice mission for myself and friends but am having a few issues and wonder if anyone can help.

The plan is you start on an intercept against enemy A then I have it scripted so that when he dies enemy B spawns so that you can then do another BVR intercept. When B dies C spawns and so far all this works fine.

The plan is that when C dies A respawns and the cycle begins again but this I can't seem to get working.

My idea was maybe to create an enemy D in the same location as A and then add an additional trigger to spawn B and then hopefully the cycle would work but the aircraft won't respawn once shot down the first time.

Is there anyway I can achieve this?

Ta.

Posted

Sure You can achieve this, just a little scripting is required.
For instance, doing it with the MOOSE can look like this:

env.info(">>> Respawn - RED-AGRESSOR1 >>>")
REDAGRESSOR1 = SPAWN
    :New( "RED-AGRTPL1" )
    :InitLimit( 2, 0 )
    :InitModex(math.random(200, 219))
    :InitRandomizeTemplatePrefixes({"RED-AGR"})
    :InitCleanUp( 400 )
    :InitDelayOn()
    :InitRepeatOnEngineShutDown()
    :OnSpawnGroup(
    function ( SpawnGroup )
        env.info(">>>>> RED AGGRESSOR1 Function SpawnGroup started >>>>>")
        Red_Agressors_1 = SpawnGroup
        PatrolZone1Group = GROUP:FindByName("RED_PATROL_ZONE_1")
        PatrolZone1 = ZONE_POLYGON:New( "Patrol Zone 1", PatrolZone1Group )
        AIEngageZone1Group = GROUP:FindByName( "RED_PATROL_ZONE_1" )
        AIEngageZone1 = ZONE_POLYGON:New( "Red Engage Zone 1", AIEngageZone1Group)
        AICapZone1 = AI_CAP_ZONE:New( PatrolZone1, 6000, 15000, 700, 2200 )
            AICapZone1:SetControllable( SpawnGroup )
            AICapZone1:ManageDamage( 0.5 )
            AICapZone1:ManageFuel( 0.2, 0 )
            AICapZone1:SetEngageRange( 40000 )
            AICapZone1:__Start( 1 )
        env.info(">>>>> RED AGGRESSOR1 Function SpawnGroup finished >>>>>")
    end
    )
    
    RedSpawnSched1 = SCHEDULER:New(nil,function()
        REDAGRESSOR1:SpawnInZone(myZone, true)
        end,{},90,120,0.5)

env.info(">>> Respawn finished - RED-AGRESSOR1 >>>")

 

Natural Born Kamikaze

-------------------------

AMD Ryzen 5 3600, AMD Fatal1ty B450 Gaming K4, AMD Radeon RX 5700 XT, 32 GB RAM Corsair Vengeance LPX, PSU Modecom Volcano 750W, Virpil Constellation Alpha Prime on Moza AB9 base, Virpil MongoosT-50CM3 Throttle, Turtle Beach VelocityOne Rudder.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...