mirror of
https://github.com/iTracerFacer/DCS_MissionDev.git
synced 2025-12-03 04:14:46 +00:00
41 lines
1.2 KiB
Lua
41 lines
1.2 KiB
Lua
---
|
|
-- Name: DES-020 - Designation of AREAS - Status Menu Flash Activate
|
|
-- 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 current status menu flashing on
|
|
RecceDesignation:SetFlashStatusMenu( true )
|
|
|
|
-- Set the possible laser codes.
|
|
RecceDesignation:SetLaserCodes({1113,1131,1256})
|
|
|
|
-- Start the detection process in 5 seconds.
|
|
RecceDesignation:__Detect( -5 )
|
|
|