--- -- MOOSE SPAWN repeat test scenario -- ------------------------------- -- There are 8 GROUPs Spawned. -- They fly around Kutaisi and will land. -- Upon landing: -- 1. The KA-50 and the C-101EB should respawn itself directly when landed. -- 2. the MI-8MTV2 and the A-10C should respawn itself when the air unit has parked at the ramp. -- @module MOOSE_Test_SPAWN_Repeat -- @author FlightControl Include.File("Spawn") BASE:TraceClass("GROUP") BASE:TraceClass("SPAWN") BASE:TraceClass("DATABASE") do -- Declare SPAWN objects local Spawn_KA_50 = SPAWN:New("KA-50") local Spawn_MI_8MTV2 = SPAWN:New("MI-8MTV2") local Spawn_C_101EB = SPAWN:New("C-101EB") local Spawn_A_10C = SPAWN:New("A-10C") -- Choose repeat functionality -- Repeat on landing Spawn_KA_50:RepeatOnLanding() Spawn_C_101EB:RepeatOnLanding() -- Repeat on enging shutdown (when landed on the airport) Spawn_MI_8MTV2:RepeatOnEngineShutDown() Spawn_A_10C:RepeatOnEngineShutDown() -- Now SPAWN the GROUPs Spawn_KA_50:Spawn() Spawn_KA_50:Spawn() Spawn_C_101EB:Spawn() Spawn_C_101EB:Spawn() Spawn_MI_8MTV2:Spawn() Spawn_MI_8MTV2:Spawn() Spawn_A_10C:Spawn() Spawn_A_10C:Spawn() -- Now run the mission and observe the behaviour. end