mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2025-08-15 10:37:46 +00:00
41 lines
1.3 KiB
Lua
41 lines
1.3 KiB
Lua
---
|
|
-- Name: DES-010 - Designation of AREAS - Threat Level Prioritization
|
|
-- Author: FlightControl
|
|
-- Date Created: 24 Apr 2017
|
|
--
|
|
-- # Situation:
|
|
--
|
|
-- Demonstrates the designation of units, which are grouped in AREAs.
|
|
--
|
|
-- A Set of Recce are detecting a large group of units.
|
|
-- This test is about the prioritization. First the SAMs should be designated, then the rest.
|
|
--
|
|
-- # Test cases:
|
|
--
|
|
-- - Check if the SAMs are designated first.
|
|
|
|
|
|
RecceSetGroup = SET_GROUP:New():FilterPrefixes( "Recce" ):FilterStart()
|
|
|
|
HQ = GROUP:FindByName( "HQ" )
|
|
|
|
CC = COMMANDCENTER:New( HQ, "HQ" )
|
|
|
|
-- Let the RecceSetGroup vehicles in the collection detect targets and group them in AREAS of 1000 meters.
|
|
RecceDetection = DETECTION_AREAS:New( RecceSetGroup, 1000 )
|
|
|
|
-- Create a Attack Set, which contains the human player client slots and CA vehicles.
|
|
AttackSet = SET_GROUP:New():FilterPrefixes("Attack"):FilterStart()
|
|
|
|
RecceDesignation = DESIGNATE:New( CC, RecceDetection, AttackSet )
|
|
|
|
-- This sets the threat level prioritization on
|
|
RecceDesignation:SetThreatLevelPrioritization( true )
|
|
|
|
-- Set the possible laser codes.
|
|
RecceDesignation:SetLaserCodes({1113,1131,1256})
|
|
|
|
-- Start the detection process in 5 seconds.
|
|
RecceDesignation:__Detect( -5 )
|
|
|