Add files via upload

This commit is contained in:
Thomas 2023-10-10 17:08:05 +02:00 committed by GitHub
parent 8b10478692
commit 9d20e12c5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 6 deletions

View File

@ -1,6 +1,8 @@
---
-- Name: RAT-010 - Traffic at McCarran International
-- Author: funkyfranky
-- Date Created: 24 Sep 2017
-- Updated: 10 Oct 2023
--
-- # Situation:
--
@ -16,6 +18,8 @@
-- Create RAT object from KC-135 template.
local kc135=RAT:New("RAT_KC135")
kc135:SetCoalition("same")
-- Set departure zones. We need takeoff "air" for that.
kc135:SetDeparture({"RAT Zone North", "RAT Zone East"})
@ -23,7 +27,7 @@ kc135:SetDeparture({"RAT Zone North", "RAT Zone East"})
kc135:SetTakeoff("air")
-- Aircraft will fly to McCarran
kc135:SetDestination("McCarran International Airport")
kc135:SetDestination(AIRBASE.Nevada.McCarran_International_Airport)
-- Spawn two aircraft.
kc135:Spawn(2)
@ -32,8 +36,10 @@ kc135:Spawn(2)
-- Create RAT object from E-3A template.
local e3=RAT:New("RAT_E3")
e3:SetCoalition("same")
-- Aircraft are spawned at McCarran. Destinations are random.
e3:SetDeparture("McCarran International Airport")
e3:SetDeparture(AIRBASE.Nevada.McCarran_International_Airport)
-- Enable respawn after landing with a delay of six minutes.
e3:RespawnAfterLanding(360)
@ -46,10 +52,10 @@ e3:Spawn(2)
local yak=RAT:New("RAT_YAK")
-- These are the airports a Yak-40 gets a parking slot.
yak:SetDeparture({"Tonopah Airport", "Tonopah Test Range Airfield", "Henderson Executive Airport", "Nellis AFB", "Groom Lake", "Laughlin Airport"})
yak:SetDeparture({AIRBASE.Nevada.Tonopah_Airport, AIRBASE.Nevada.Tonopah_Test_Range_Airfield, AIRBASE.Nevada.Henderson_Executive_Airport, AIRBASE.Nevada.Nellis_AFB, AIRBASE.Nevada.Groom_Lake_AFB, AIRBASE.Nevada.Laughlin_Airport})
-- Destination McCarran.
yak:SetDestination("McCarran International Airport")
yak:SetDestination(AIRBASE.Nevada.McCarran_International_Airport)
-- Spawn eight Yak-40.
yak:Spawn(8)
@ -58,11 +64,13 @@ yak:Spawn(8)
-- Create RAT object from E-3A template.
local tf51=RAT:New("RAT_TF51")
tf51:SetCoalition("same")
-- Departure airport will be chosen from this list.
tf51:SetDeparture({"Henderson Executive Airport", "Boulder City Airport", "Echo Bay"})
tf51:SetDeparture({AIRBASE.Nevada.Henderson_Executive_Airport, AIRBASE.Nevada.Boulder_City_Airport, AIRBASE.Nevada.Echo_Bay})
-- All will fly to McCarran.
tf51:SetDestination("McCarran International Airport")
tf51:SetDestination(AIRBASE.Nevada.McCarran_International_Airport)
-- Spawn four TF-51D
tf51:Spawn(4)