DCS_MissionDev/DCS_Falklands/Siege of Ushuaia/DES-010 - Designation of AREAS - Threat Level Prioritization.lua
2024-11-12 14:18:28 -06:00

44 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:GenerateLaserCodes()
RecceDesignation:AddMenuLaserCode( 1113, "Lase with %d for Su-25T" )
RecceDesignation:AddMenuLaserCode( 1680, "Lase with %d for A-10A" )
-- Start the detection process in 5 seconds.
RecceDesignation:__Detect( -5 )