Updated Moose.lua

This commit is contained in:
funkyfranky
2022-10-11 19:30:16 +00:00
parent 192d4710a2
commit 9f91de26ca
982 changed files with 22665 additions and 22625 deletions

View File

@@ -1,31 +1,30 @@
---
-- Name: TSK-300 - A2A - SWEEP
-- Author: FlightControl
-- Date Created: 28 May 2017
--
-- # Situation:
--
-- This mission demonstrates the Sweeping of target areas.
--
-- # Test cases:
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Target Sweeping Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Sweeping", "Primary", "Wait until the detected targets get undetected. And see if a SWEEP task is allocated.", coalition.side.BLUE )
:AddScoring( Scoring )
AttackGroups = SET_GROUP:New():FilterCoalitions( "red" ):FilterPrefixes( "Attack" ):FilterStart()
TargetSetUnit = SET_UNIT:New():FilterCoalitions( "blue" ):FilterPrefixes( "Target" ):FilterStart()
TaskSWEEP = TASK_A2A_SWEEP:New( Mission, AttackGroups, "SWEEP", TargetSetUnit )
end
---
-- Name: TSK-300 - A2A - SWEEP
-- Author: FlightControl
-- Date Created: 28 May 2017
--
-- # Situation:
--
-- This mission demonstrates the Sweeping of target areas.
--
-- # Test cases:
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Target Sweeping Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Sweeping", "Primary", "Wait until the detected targets get undetected. And see if a SWEEP task is allocated.", coalition.side.BLUE )
:AddScoring( Scoring )
AttackGroups = SET_GROUP:New():FilterCoalitions( "red" ):FilterPrefixes( "Attack" ):FilterStart()
TargetSetUnit = SET_UNIT:New():FilterCoalitions( "blue" ):FilterPrefixes( "Target" ):FilterStart()
TaskSWEEP = TASK_A2A_SWEEP:New( Mission, AttackGroups, "SWEEP", TargetSetUnit )
end

View File

@@ -1,78 +1,78 @@
---
-- Name: TSK-CGO-000 - Boarding Test
-- Author: FlightControl
-- Date Created: 12 Apr 2017
--
-- This mission demonstrates the transport of a cargo group using an APC.
--
-- There is:
-- - 1 APC.
-- - 2 Transport Tasks - Transport Workers and Transport Engineers.
-- - 2 Cargo - Workers and Engineers.
-- - 2 Deployment Zones - Alpha and Beta.
--
-- Task Engineers: Transport the Engineers to Deployment Zone Alpha or Zone Beta.
-- Task Workers: Transport the Workers to Deployment Zone Beta.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local WorkersCargoSet = SET_CARGO:New():FilterTypes( "Workers" ):FilterStart()
local WorkersGroup = GROUP:FindByName( "Workers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Workers".
-- The cargoset "WorkersCargoSet" will embed all defined cargo of type Workers (prefix) into its set.
local WorkersCargoGroup = CARGO_GROUP:New( WorkersGroup, "Workers", "Mechanics", 500 )
-- We setup the task to transport workers.
WorkersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Workers", WorkersCargoSet )
-- We setup to deploy workers in the deploy zone 1.
WorkersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end
---
-- Name: TSK-CGO-000 - Boarding Test
-- Author: FlightControl
-- Date Created: 12 Apr 2017
--
-- This mission demonstrates the transport of a cargo group using an APC.
--
-- There is:
-- - 1 APC.
-- - 2 Transport Tasks - Transport Workers and Transport Engineers.
-- - 2 Cargo - Workers and Engineers.
-- - 2 Deployment Zones - Alpha and Beta.
--
-- Task Engineers: Transport the Engineers to Deployment Zone Alpha or Zone Beta.
-- Task Workers: Transport the Workers to Deployment Zone Beta.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local WorkersCargoSet = SET_CARGO:New():FilterTypes( "Workers" ):FilterStart()
local WorkersGroup = GROUP:FindByName( "Workers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Workers".
-- The cargoset "WorkersCargoSet" will embed all defined cargo of type Workers (prefix) into its set.
local WorkersCargoGroup = CARGO_GROUP:New( WorkersGroup, "Workers", "Mechanics", 500 )
-- We setup the task to transport workers.
WorkersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Workers", WorkersCargoSet )
-- We setup to deploy workers in the deploy zone 1.
WorkersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end

View File

@@ -1,78 +1,78 @@
---
-- Name: TSK-CGO-100 - Ground - APC Test
-- Author: FlightControl
-- Date Created: 12 Apr 2017
--
-- This mission demonstrates the transport of a cargo group using an APC.
--
-- There is:
-- - 1 APC.
-- - 2 Transport Tasks - Transport Workers and Transport Engineers.
-- - 2 Cargo - Workers and Engineers.
-- - 2 Deployment Zones - Alpha and Beta.
--
-- Task Engineers: Transport the Engineers to Deployment Zone Alpha or Zone Beta.
-- Task Workers: Transport the Workers to Deployment Zone Beta.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 ):RespawnOnDestroyed( true )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local WorkersCargoSet = SET_CARGO:New():FilterTypes( "Workers" ):FilterStart()
local WorkersGroup = GROUP:FindByName( "Workers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Workers".
-- The cargoset "WorkersCargoSet" will embed all defined cargo of type Workers (prefix) into its set.
local WorkersCargoGroup = CARGO_GROUP:New( WorkersGroup, "Workers", "Mechanics", 500 ):RespawnOnDestroyed( true )
-- We setup the task to transport workers.
WorkersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Workers", WorkersCargoSet )
-- We setup to deploy workers in the deploy zone 1.
WorkersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end
---
-- Name: TSK-CGO-100 - Ground - APC Test
-- Author: FlightControl
-- Date Created: 12 Apr 2017
--
-- This mission demonstrates the transport of a cargo group using an APC.
--
-- There is:
-- - 1 APC.
-- - 2 Transport Tasks - Transport Workers and Transport Engineers.
-- - 2 Cargo - Workers and Engineers.
-- - 2 Deployment Zones - Alpha and Beta.
--
-- Task Engineers: Transport the Engineers to Deployment Zone Alpha or Zone Beta.
-- Task Workers: Transport the Workers to Deployment Zone Beta.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 ):RespawnOnDestroyed( true )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local WorkersCargoSet = SET_CARGO:New():FilterTypes( "Workers" ):FilterStart()
local WorkersGroup = GROUP:FindByName( "Workers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Workers".
-- The cargoset "WorkersCargoSet" will embed all defined cargo of type Workers (prefix) into its set.
local WorkersCargoGroup = CARGO_GROUP:New( WorkersGroup, "Workers", "Mechanics", 500 ):RespawnOnDestroyed( true )
-- We setup the task to transport workers.
WorkersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Workers", WorkersCargoSet )
-- We setup to deploy workers in the deploy zone 1.
WorkersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end

View File

@@ -1,78 +1,69 @@
---
-- Name: TSK-CGO-100 - Ground - APC Test
-- Author: FlightControl
-- Date Created: 12 Apr 2017
--
-- This mission demonstrates the transport of a cargo group using an APC.
--
-- There is:
-- - 1 APC.
-- - 2 Transport Tasks - Transport Workers and Transport Engineers.
-- - 2 Cargo - Workers and Engineers.
-- - 2 Deployment Zones - Alpha and Beta.
--
-- Task Engineers: Transport the Engineers to Deployment Zone Alpha or Zone Beta.
-- Task Workers: Transport the Workers to Deployment Zone Beta.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local WorkersCargoSet = SET_CARGO:New():FilterTypes( "Workers" ):FilterStart()
local WorkersGroup = GROUP:FindByName( "Workers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Workers".
-- The cargoset "WorkersCargoSet" will embed all defined cargo of type Workers (prefix) into its set.
local WorkersCargoGroup = CARGO_GROUP:New( WorkersGroup, "Workers", "Mechanics", 500 )
-- We setup the task to transport workers.
WorkersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Workers", WorkersCargoSet )
-- We setup to deploy workers in the deploy zone 1.
WorkersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end
---
-- Name: TSK-CGO-100 - Ground - APC Test
-- Author: FlightControl
-- Date Created: 12 Apr 2017
--
-- This mission demonstrates the transport of a cargo group using an APC.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local WorkersCargoSet = SET_CARGO:New():FilterTypes( "Workers" ):FilterStart()
local WorkersGroup = GROUP:FindByName( "Workers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Workers".
-- The cargoset "WorkersCargoSet" will embed all defined cargo of type Workers (prefix) into its set.
local WorkersCargoGroup = CARGO_GROUP:New( WorkersGroup, "Workers", "Mechanics", 500 )
-- We setup the task to transport workers.
WorkersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Workers", WorkersCargoSet )
-- We setup to deploy workers in the deploy zone 1.
WorkersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end

View File

@@ -1,55 +1,55 @@
---
-- Name: TSK-CGO-502 - Helo - 1 Helo - 1 Task - 2 Cargo - 1 Zone
-- Author: FlightControl
-- Date Created: 12 Mar 2018
--
-- This mission demonstrates the transport of a cargo group using an Helicopter.
--
-- There is:
-- - 1 Helicopter.
-- - 1 Transport Task - Transport Workers.
-- - 1 Cargo - Workers.
-- - 1 Deployment Zone - Alpha.
--
-- Task Workers: Transport the Workers to Deployment Zone Alpha.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end
---
-- Name: TSK-CGO-502 - Helo - 1 Helo - 1 Task - 2 Cargo - 1 Zone
-- Author: FlightControl
-- Date Created: 12 Mar 2018
--
-- This mission demonstrates the transport of a cargo group using an Helicopter.
--
-- There is:
-- - 1 Helicopter.
-- - 1 Transport Task - Transport Workers.
-- - 1 Cargo - Workers.
-- - 1 Deployment Zone - Alpha.
--
-- Task Workers: Transport the Workers to Deployment Zone Alpha.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end

View File

@@ -1,56 +1,56 @@
---
-- Name: TSK-CGO-502 - Helo - 1 Helo - 1 Task - 2 Cargo - 1 Zone
-- Author: FlightControl
-- Date Created: 12 Mar 2018
--
-- This mission demonstrates the transport of a cargo group using an Helicopter.
--
-- There is:
-- - 1 Helicopter.
-- - 1 Transport Task - Transport Workers.
-- - 1 Cargo - Workers.
-- - 1 Deployment Zone - Alpha.
--
-- Task Workers: Transport the Workers to Deployment Zone Alpha.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end
---
-- Name: TSK-CGO-502 - Helo - 1 Helo - 1 Task - 2 Cargo - 1 Zone
-- Author: FlightControl
-- Date Created: 12 Mar 2018
--
-- This mission demonstrates the transport of a cargo group using an Helicopter.
--
-- There is:
-- - 1 Helicopter.
-- - 1 Transport Task - Transport Workers.
-- - 1 Cargo - Workers.
-- - 1 Deployment Zone - Alpha.
--
-- Task Workers: Transport the Workers to Deployment Zone Alpha.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end

View File

@@ -1,64 +1,64 @@
---
-- Name: TSK-CGO-502 - Helo - 1 Helo - 1 Task - 2 Cargo - 1 Zone
-- Author: FlightControl
-- Date Created: 12 Mar 2018
--
-- This mission demonstrates the transport of a cargo group using an Helicopter.
--
-- There is:
-- - 1 Helicopter.
-- - 1 Transport Task - Transport Workers.
-- - 1 Cargo - Workers.
-- - 1 Deployment Zone - Alpha.
--
-- Task Workers: Transport the Workers to Deployment Zone Alpha.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
local WorkersGroup = GROUP:FindByName( "Workers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Workers".
-- The cargoset "WorkersCargoSet" will embed all defined cargo of type Workers (prefix) into its set.
local WorkersCargoGroup = CARGO_GROUP:New( WorkersGroup, "Engineers", "Workers", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
end
---
-- Name: TSK-CGO-502 - Helo - 1 Helo - 1 Task - 2 Cargo - 1 Zone
-- Author: FlightControl
-- Date Created: 12 Mar 2018
--
-- This mission demonstrates the transport of a cargo group using an Helicopter.
--
-- There is:
-- - 1 Helicopter.
-- - 1 Transport Task - Transport Workers.
-- - 1 Cargo - Workers.
-- - 1 Deployment Zone - Alpha.
--
-- Task Workers: Transport the Workers to Deployment Zone Alpha.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
local WorkersGroup = GROUP:FindByName( "Workers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Workers".
-- The cargoset "WorkersCargoSet" will embed all defined cargo of type Workers (prefix) into its set.
local WorkersCargoGroup = CARGO_GROUP:New( WorkersGroup, "Engineers", "Workers", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
end

View File

@@ -1,66 +1,65 @@
---
-- Name: TSK-CGO-503 - Helo - 1 Helo - 1 Task - 2 Cargo - 2 Zones
-- Author: FlightControl
-- Date Created: 12 Mar 2018
--
-- This mission demonstrates the transport of a cargo group using an Helicopter.
--
-- There is:
-- - 1 Helicopter.
-- - 1 Transport Task - Transport Workers.
-- - 1 Cargo - Workers.
-- - 1 Deployment Zone - Alpha.
--
-- Task Workers: Transport the Workers to Deployment Zone Alpha.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
local WorkersGroup = GROUP:FindByName( "Workers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Workers".
-- The cargoset "WorkersCargoSet" will embed all defined cargo of type Workers (prefix) into its set.
local WorkersCargoGroup = CARGO_GROUP:New( WorkersGroup, "Engineers", "Workers", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end
---
-- Name: TSK-CGO-503 - Helo - 1 Helo - 1 Task - 2 Cargo - 2 Zones
-- Author: FlightControl
-- Date Created: 12 Mar 2018
--
-- This mission demonstrates the transport of a cargo group using an Helicopter.
--
-- There is:
-- - 1 Helicopter.
-- - 1 Transport Task - Transport Workers.
-- - 1 Cargo - Workers.
-- - 1 Deployment Zone - Alpha.
--
-- Task Workers: Transport the Workers to Deployment Zone Alpha.
--
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
local WorkersGroup = GROUP:FindByName( "Workers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Workers".
-- The cargoset "WorkersCargoSet" will embed all defined cargo of type Workers (prefix) into its set.
local WorkersCargoGroup = CARGO_GROUP:New( WorkersGroup, "Engineers", "Workers", 500 )
end

View File

@@ -1,77 +1,77 @@
---
-- Name: TSK-CGO-510 - Helo - 1 Helo - 2 Task - 2 Cargo - 2 Zones
-- Author: FlightControl
-- Date Created: 12 Mar 2018
--
-- This mission demonstrates the transport of a cargo group using an Helicopter.
--
-- There is:
-- - 1 Helicopter.
-- - 2 Transport Tasks - Transport Workers and Transport Engineers.
-- - 2 Cargo - Workers and Engineers.
-- - 2 Deployment Zones - Alpha and Beta.
--
-- Task Engineers: Transport the Engineers to Deployment Zone Alpha or Zone Beta.
-- Task Workers: Transport the Workers to Deployment Zone Beta.
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local WorkersCargoSet = SET_CARGO:New():FilterTypes( "Workers" ):FilterStart()
local WorkersGroup = GROUP:FindByName( "Workers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Workers".
-- The cargoset "WorkersCargoSet" will embed all defined cargo of type Workers (prefix) into its set.
local WorkersCargoGroup = CARGO_GROUP:New( WorkersGroup, "Workers", "Mechanics", 500 )
-- We setup the task to transport workers.
WorkersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Workers", WorkersCargoSet )
-- We setup to deploy workers in the deploy zone 1.
WorkersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end
---
-- Name: TSK-CGO-510 - Helo - 1 Helo - 2 Task - 2 Cargo - 2 Zones
-- Author: FlightControl
-- Date Created: 12 Mar 2018
--
-- This mission demonstrates the transport of a cargo group using an Helicopter.
--
-- There is:
-- - 1 Helicopter.
-- - 2 Transport Tasks - Transport Workers and Transport Engineers.
-- - 2 Cargo - Workers and Engineers.
-- - 2 Deployment Zones - Alpha and Beta.
--
-- Task Engineers: Transport the Engineers to Deployment Zone Alpha or Zone Beta.
-- Task Workers: Transport the Workers to Deployment Zone Beta.
do
local HQ = GROUP:FindByName( "HQ", "Bravo HQ" )
local CommandCenter = COMMANDCENTER:New( HQ, "Bravo" )
local Scoring = SCORING:New( "Cargo Group Transport Demonstration" )
local Mission = MISSION
:New( CommandCenter, "Transport", "High", "Transport the team from Deploy Zone 1 to Deploy Zone 2", coalition.side.BLUE )
:AddScoring( Scoring )
-- Allocate the Transport, which is an APC in the field.
local APC = SET_GROUP:New():FilterPrefixes( "Transport" ):FilterStart()
-- We will setup the transportation for Engineers.
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local EngineersCargoSet = SET_CARGO:New():FilterTypes( "Engineers" ):FilterStart()
-- Now we add cargo into the battle scene.
local EngineersGroup = GROUP:FindByName( "Engineers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Engineers".
-- The cargoset "EngineersCargoSet" will embed all defined cargo of type Engineers (prefix) into its set.
local EngineersCargoGroup = CARGO_GROUP:New( EngineersGroup, "Engineers", "Radar Team", 500 )
-- We setup the task to transport engineers.
EngineersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Engineers", EngineersCargoSet )
-- We setup to deploy workers in the deploy zone 1 and 2 (the player can choose).
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Alpha", GROUP:FindByName("DeployZone Alpha") ) )
EngineersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
-- Here we define the "cargo set", which is a collection of cargo objects.
-- The cargo set will be the input for the cargo transportation task.
-- So a transportation object is handling a cargo set, which is automatically refreshed when new cargo is added/deleted.
local WorkersCargoSet = SET_CARGO:New():FilterTypes( "Workers" ):FilterStart()
local WorkersGroup = GROUP:FindByName( "Workers" )
-- CARGO_GROUP can be used to setup cargo with a GROUP object underneath.
-- We name this group Engineers.
-- Note that the name of the cargo is "Workers".
-- The cargoset "WorkersCargoSet" will embed all defined cargo of type Workers (prefix) into its set.
local WorkersCargoGroup = CARGO_GROUP:New( WorkersGroup, "Workers", "Mechanics", 500 )
-- We setup the task to transport workers.
WorkersCargoTransportTask = TASK_CARGO_TRANSPORT:New( Mission, APC, "Transport Workers", WorkersCargoSet )
-- We setup to deploy workers in the deploy zone 1.
WorkersCargoTransportTask:AddDeployZone( ZONE_POLYGON:New( "Deploy Zone Beta", GROUP:FindByName("DeployZone Beta") ) )
end