Quote:
-- Fixed departure and destination airports. Multiple airports must be given in curly brackets {}.
local tiger=RAT:New("RAT_TIGER") -- Create RAT object.
tiger:SetDeparture({"Nellis_AFB", "Echo_Bay"}) -- Aircraft will spawn at.
tiger:SetDestination({"Creech_AFB", "Henderson_Executive_Airport"}) -- Aircraft will fly to.
tiger:Spawn(4)
or like this
Quote:
local tiger=RAT:New("RAT_TIGER")
tiger:Spawn(5)
local viper=RAT:New("RAT_VIPER")
viper:Spawn(10)
local tomcat=RAT:New("RAT_TOMCAT")
tomcat:Spawn(8)
local predator=RAT:New("RAT_PREDATOR")
predator:Spawn(4)
local phantom=RAT:New("RAT_PHANTOM")
phantom:Spawn(6)
local heli=RAT:New("RAT_HELI")
heli:Spawn(8)
local heli2=RAT:New("RAT_HELI2")
heli2:Spawn(6)
I inserted the flights via MissionEditor and created a Trigger Rule which should get activated when the mission starts and run my Scriptfile (one of the two examples above).