New mission 1.0

This commit is contained in:
iTracerFacer 2024-12-02 10:01:21 -06:00
parent 6e971cd85b
commit f9190ca7e7
20 changed files with 22663 additions and 0 deletions

View File

@ -0,0 +1,602 @@
-- Creats a UH-60 on the helipad of a Hazard perry.
local staticObj = {
["name"] = "Carrierstatics Hummer hole Hawkeye 1", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["livery_id"] = "VAW-113 600 VNAO",
["category"] = "Planes",
["offsets"] =
{
["y"] = 15.826166370069,
["angle"] = 4.7123889803847,
["x"] = -44.139332960011,
}, -- end of ["offsets"]
["type"] = "E-2C",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Hummer hole Hawkeye 2", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["livery_id"] = "VAW-113 600 VNAO",
["category"] = "Planes",
["offsets"] =
{
["y"] = 14.254737799987,
["angle"] = 4.7123889803847,
["x"] = -35.110761529999,
}, -- end of ["offsets"]
["type"] = "E-2C",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Seahawk 1", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["livery_id"] = "default",
["category"] = "Helicopters",
["offsets"] =
{
["y"] = 19.131572599988,
["angle"] = 1.5707963267949,
["x"] = -63.034915480006,
}, -- end of ["offsets"]
["type"] = "S_70B_Seahawk",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Seahawk 2", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["livery_id"] = "default",
["category"] = "Helicopters",
["offsets"] =
{
["y"] = 18.217286890023,
["angle"] = 1.5707963267949,
["x"] = -58.977772630053,
}, -- end of ["offsets"]
["type"] = "S_70B_Seahawk",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Seahawk 3", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["livery_id"] = "default",
["category"] = "Helicopters",
["offsets"] =
{
["y"] = 17.503001180012,
["angle"] = 1.5707963267949,
["x"] = -54.977772630053,
}, -- end of ["offsets"]
["type"] = "S_70B_Seahawk",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Seahawk 4", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["livery_id"] = "default",
["category"] = "Helicopters",
["offsets"] =
{
["y"] = 16.531572600012,
["angle"] = 1.5707963267949,
["x"] = -51.006344050053,
}, -- end of ["offsets"]
["type"] = "S_70B_Seahawk",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Hawkeye 1", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["livery_id"] = "VAW-113 600 VNAO",
["category"] = "Planes",
["offsets"] =
{
["y"] = 24.404563380056,
["angle"] = 4.7123889803847,
["x"] = -80.277299020032,
}, -- end of ["offsets"]
["type"] = "E-2C",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Equipment 1", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "ADEquipment",
["offsets"] =
{
["y"] = 34.609063350013,
["angle"] = 4.7123889803847,
["x"] = -67.662242860009,
}, -- end of ["offsets"]
["type"] = "AS32-32A",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Equipment 2", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "ADEquipment",
["offsets"] =
{
["y"] = 26.169778789976,
["angle"] = 4.7123889803847,
["x"] = -74.13502243004,
}, -- end of ["offsets"]
["type"] = "AS32-31A",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Equipment 3", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "ADEquipment",
["offsets"] =
{
["y"] = 29.826921649976,
["angle"] = 4.7123889803847,
["x"] = -70.13502243004,
}, -- end of ["offsets"]
["type"] = "AS32-36A",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Equipment 4", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "ADEquipment",
["offsets"] =
{
["y"] = 20.941207360011,
["angle"] = 4.7123889803847,
["x"] = -70.79216529004,
}, -- end of ["offsets"]
["type"] = "AS32-32A",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Equipment 5", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "ADEquipment",
["offsets"] =
{
["y"] = 20.626921650022,
["angle"] = 4.7123889803847,
["x"] = -68.049308140005,
}, -- end of ["offsets"]
["type"] = "AS32-32A",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Equipment 6", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "ADEquipment",
["offsets"] =
{
["y"] = 16.948946870049,
["angle"] = 4.7123889803847,
["x"] = -73.019341130042,
}, -- end of ["offsets"]
["type"] = "AS32-p25",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Equipment 7", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "ADEquipment",
["offsets"] =
{
["y"] = 15.842935680063,
["angle"] = 4.7123889803847,
["x"] = -70.576404520019,
}, -- end of ["offsets"]
["type"] = "AS32-31A",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Equipment 8", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "ADEquipment",
["offsets"] =
{
["y"] = 15.512635929976,
["angle"] = 4.7123889803847,
["x"] = -68.020736710052,
}, -- end of ["offsets"]
["type"] = "AS32-31A",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics Junkyard Equipment 9", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "ADEquipment",
["offsets"] =
{
["y"] = 21.969778790022,
["angle"] = 4.7123889803847,
["x"] = -73.563593860017,
}, -- end of ["offsets"]
["type"] = "AS32-32A",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics LSO 1", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "Personnel",
["offsets"] =
{
["y"] = -22.397491869982,
["angle"] = 1.8675022996339,
["x"] = -129.69615640002,
}, -- end of ["offsets"]
["shape_name"] = "carrier_lso_usa",
["type"] = "Carrier LSO Personell",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics LSO 2", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "Personnel",
["offsets"] =
{
["y"] = -22.368920439971,
["angle"] = 2.9845130209103,
["x"] = -130.66758497001,
}, -- end of ["offsets"]
["shape_name"] = "carrier_lso1_usa",
["type"] = "Carrier LSO Personell 1",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics LSO 3", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "Personnel",
["offsets"] =
{
["y"] = -21.454634730006,
["angle"] = 2.8797932657906,
["x"] = -129.52472782001,
}, -- end of ["offsets"]
["shape_name"] = "carrier_lso2_usa",
["type"] = "Carrier LSO Personell 2",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics LSO 4", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "Personnel",
["offsets"] =
{
["y"] = -21.140349020017,
["angle"] = 3.1066860685499,
["x"] = -130.38187068002,
}, -- end of ["offsets"]
["shape_name"] = "carrier_lso3_usa",
["type"] = "Carrier LSO Personell 3",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************
local staticObj = {
["name"] = "Carrierstatics LSO 5", -- unit name (Name this something identifiable if you wish to remove it later)
-- Copy and paste over this with the units information
["category"] = "Personnel",
["offsets"] =
{
["y"] = -20.454634730006,
["angle"] = 2.2863813201126,
["x"] = -129.52472782001,
}, -- end of ["offsets"]
["shape_name"] = "carrier_lso4_usa",
["type"] = "Carrier LSO Personell 4",
-- Copy and paste over this with the units information end
-- these can be left as is, but is required.
["groupId"] = 1, -- id's of the group/unit we're spawning (will auto increment if id taken?)
["unitId"] = 1,
["y"] = 0, -- The initial location of the unit (required else unit will offset on origin of map)
["x"] = 0,
["heading"] = 0,
["linkUnit"] = shipID, -- This value must be set Via 'shipID = #' where # is the id of the ship you wish to spawn on
["linkOffset"] = true,
["dead"] = false,
}
coalition.addStaticObject(country.id.USA, staticObj) -- makes the object
-- ********************************************************

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,58 @@
BlueAWACS = SPAWN:New("BLUE EWR AWACS")
:InitLimit(1, 99)
:InitRepeatOnLanding()
:SpawnScheduled(1, 0.5)
RedAWACS = SPAWN:New("RED EWR AWACS")
:InitLimit(1, 99)
:InitRepeatOnLanding()
:SpawnScheduled(1, 0.5)
--[[
------------------------------------------------------------------------------------------------------------------
-- Blue AWACS
------------------------------------------------------------------------------------------------------------------
-- Patrol zone.
local BlueAwacsZone = ZONE:New("BLUE AWACS ZONE")
-- AWACS mission. Orbit at 22000 ft, 350 KIAS, heading 270 for 20 NM.
local BlueAWACS=AUFTRAG:NewAWACS(BlueAwacsZone:GetCoordinate(), 22000, 350, 270, 20)
BlueAWACS:SetTime("8:00", "24:00") -- Set time of operation to 8:00 to 24:00.
BlueAWACS:SetTACAN(29, "DXS") -- Set TACAN to 29Y.
BlueAWACS:SetRadio(251) -- Set radio to 225 MHz AM.
-- Create a flightgroup and set default callsign to Darkstar 1-1
local BlueAWACSFlightGroup=FLIGHTGROUP:New("BLUE EWR AWACS")
BlueAWACSFlightGroup:SetDefaultCallsign(CALLSIGN.AWACS.Darkstar, 1)
-- Assign mission to pilot.
BlueAWACSFlightGroup:AddMission(BlueAWACS)
------------------------------------------------------------------------------------------------------------------
-- Red AWACS
------------------------------------------------------------------------------------------------------------------
-- Patrol zone.
local RedAwacsZone = ZONE:New("RED AWACS ZONE")
-- AWACS mission. Orbit at 22000 ft, 350 KIAS, heading 90 for 20 NM.
local RedAWACS = AUFTRAG:NewAWACS(RedAwacsZone:GetCoordinate(), 22000, 350, 90, 20)
RedAWACS:SetTime("8:00", "24:00") -- Set time of operation to 8:00 to 24:00.
RedAWACS:SetTACAN(30, "RXS") -- Set TACAN to 30Y.
RedAWACS:SetRadio(252) -- Set radio to 252 MHz AM.
-- Create a flightgroup and set default callsign to Magic 1-1
local RedAWACSFlightGroup = FLIGHTGROUP:New("RED EWR AWACS")
RedAWACSFlightGroup:SetDefaultCallsign(CALLSIGN.AWACS.Magic, 1)
-- Assign mission to pilot.
RedAWACSFlightGroup:AddMission(RedAWACS)
]]

View File

@ -0,0 +1,34 @@
-- Create the Blue TANKER 130 spawn object
Blue_Tanker_130 = SPAWN:New("TANKER 130")
:InitLimit(1, 99)
-- Function to spawn the TANKER 130
function SpawnTanker130()
Blue_Tanker_130:Spawn()
end
-- Create the Blue TANKER spawn objects
Blue_Tanker = SPAWN:New("TANKER 135")
:InitLimit(1, 99)
Blue_Tanker_MPRS = SPAWN:New("TANKER 135 MPRS")
:InitLimit(1, 99)
-- Function to spawn the tankers
function SpawnTanker()
Blue_Tanker:Spawn()
end
function SpawnTankerMPRS()
Blue_Tanker_MPRS:Spawn()
end
-- Create a mission menu for requesting the tankers
MenuCoalitionBlue = MENU_COALITION:New(coalition.side.BLUE, "Request TANKER", missionMenu)
MenuCoalitionBlueTanker = MENU_COALITION_COMMAND:New(coalition.side.BLUE, "Launch TANKER 135", MenuCoalitionBlue, SpawnTanker)
MenuCoalitionBlueTankerMPRS = MENU_COALITION_COMMAND:New(coalition.side.BLUE, "Launch TANKER 135 MPRS", MenuCoalitionBlue, SpawnTankerMPRS)
MenuCoalitionBlueTanker130 = MENU_COALITION_COMMAND:New(coalition.side.BLUE, "Launch TANKER 130", MenuCoalitionBlue, SpawnTanker130)

View File

@ -0,0 +1,9 @@
do
local statObj = coalition.getStaticObjects(2) --1 Red coalition 2 blue coalition
for i, static in pairs(statObj) do
local staticName = static:getName()
if string.match(staticName, "Carrierstatics.*") then -- Searches for anything with a name starting with Carrierstatics
static:destroy() -- removes the object
end
end
end

View File

@ -0,0 +1,32 @@
local level_1_group = missionCommands.addSubMenu("Deck Layouts")
local action = missionCommands.addCommand("Clear the Deck", level_1_group, trigger.action.setUserFlag, 1, 1)
local level_2_group = missionCommands.addSubMenu("Swith Deck Layout", level_1_group)
local level_3_group = missionCommands.addSubMenu("Launch", level_2_group)
local action = missionCommands.addCommand("Launch 2 Spawn Cat 34", level_3_group, trigger.action.setUserFlag, 2, 1)
local action = missionCommands.addCommand("Launch 2 Spawn Cat 234", level_3_group, trigger.action.setUserFlag, 3, 1)
local action = missionCommands.addCommand("Launch 4 Spawn Cat 34", level_3_group, trigger.action.setUserFlag, 4, 1)
local action = missionCommands.addCommand("Launch 4 Spawn Cat 134", level_3_group, trigger.action.setUserFlag, 5, 1)
local action = missionCommands.addCommand("Launch 9 Spawn Cat 134", level_3_group, trigger.action.setUserFlag, 6, 1)
local action = missionCommands.addCommand("Launch 11 Spawn Cat 234", level_3_group, trigger.action.setUserFlag, 7, 1)
local action = missionCommands.addCommand("Launch 11 Spawn Cat 1234", level_3_group, trigger.action.setUserFlag, 8, 1)
local level_3_group = missionCommands.addSubMenu("Flex & Recovery", level_2_group)
local action = missionCommands.addCommand("Flex 2 Spawn Cat 234", level_3_group, trigger.action.setUserFlag, 9, 1)
local action = missionCommands.addCommand("Flex 4 Spawn Cat 134 Cat 2 Parking", level_3_group, trigger.action.setUserFlag, 10, 1)
local action = missionCommands.addCommand("Flex 10 Spawn Cat 134 Sixpack Parking", level_3_group, trigger.action.setUserFlag, 11, 1)
local action = missionCommands.addCommand("Flex 9 Spawn Cat 134 Cat 2 Parking", level_3_group, trigger.action.setUserFlag, 12, 1)
local action = missionCommands.addCommand("Recovery 2 Spawn Cat 2 Parking", level_3_group, trigger.action.setUserFlag, 13, 1)
local action = missionCommands.addCommand("Locked Deck", level_2_group, trigger.action.setUserFlag, 14, 1)
local action = missionCommands.addCommand("Clear Deck", level_2_group, trigger.action.setUserFlag, 15, 1)