Jump to content

Recommended Posts

Posted

Hi,

 

im trying to populate the Map a littel bit and get some Traffic on the Airport.

 

My Plan was to generate a Group of a few Aircraft, give them some Route and after a period of time i want to spawn a duplicate of that Group (including Waypoints).

 

That way i should be able to populate that Base a bit and get a more or less steady stream of starting and landing Aircraft.

 

I know how to set Triggers and repeat them, but i havent found a way to duplicate a Group (or duplicate anything).

Is this possible and when its possible please lead me to the direction where i can find the infos about it.

Posted
I know how to set Triggers and repeat them, but i havent found a way to duplicate a Group (or duplicate anything).

Is this possible and when its possible please lead me to the direction where i can find the infos about it.

 

It is possible only trough scripting, triggers cant duplicate groups. On my missions I use the RAT (random air traffic) feature of moose to get background traffic on my missions. RAT can be used with very little knowledge of scripting, editing a file like this to specify which traffic I need:

 

local an26=RAT:New("RAT-An26", "An26 Red")
an26:SetCoalitionAircraft("red")
an26:SetCoalition("sameonly")
an26:SetTakeoff("cold")
an26:Spawn(2)

local MiG21=RAT:New("RAT-MiG21", "MiG21 Red")
MiG21:SetCoalitionAircraft("red")
MiG21:SetCoalition("sameonly")
MiG21:SetTakeoff("cold")
MiG21:Spawn(1)

local MiG19=RAT:New("RAT-MiG19", "MiG19 Red")
MiG19:SetCoalitionAircraft("red")
MiG19:SetCoalition("sameonly")
MiG19:SetTakeoff("cold")
MiG19:Spawn(1)

local MiG23=RAT:New("RAT-MiG23", "MiG23 Red")
MiG23:SetCoalitionAircraft("red")
MiG23:SetCoalition("sameonly")
MiG23:SetTakeoff("cold")
MiG23:Spawn(1)

local Mi8=RAT:New("RAT-Mi8", "Mi8 Red")
Mi8:SetCoalitionAircraft("red")
Mi8:SetCoalition("sameonly")
Mi8:SetTakeoff("cold")
Mi8:Spawn(1)

local Yak40=RAT:New("RAT-Yak40", "Yak40 Red")
Yak40:SetCoalitionAircraft("red")
Yak40:SetCoalition("sameonly")
Yak40:SetTakeoff("cold")
Yak40:Spawn(2)

local Tu142=RAT:New("RAT-Tu142", "Tu142 Red")
Tu142:SetCoalitionAircraft("red")
Tu142:SetCoalition("sameonly")
Tu142:SetTakeoff("cold")
Tu142:ExcludedAirports({"Batumi"})
Tu142:Spawn(2)

 

This example generates air traffic for the red coalition, between red airbases only.

 

For work: iMac mid-2010 of 27" - Core i7 870 - 6 GB DDR3 1333 MHz - ATI HD5670 - SSD 256 GB - HDD 2 TB - macOS High Sierra

For Gaming: 34" Monitor - Ryzen 3600 - 32 GB DDR4 2400 - nVidia RTX2080 - SSD 1.25 TB - HDD 10 TB - Win10 Pro - TM HOTAS Cougar

Mobile: iPad Pro 12.9" of 256 GB

  • Recently Browsing   0 members

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