mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2026-08-20 17:07:13 +00:00
18 lines
615 B
Lua
18 lines
615 B
Lua
---
|
|
-- Name: DET-600 - Detection Zones
|
|
-- Author: FlightControl
|
|
-- Date Created: 15 Mar 2019
|
|
--
|
|
-- # Situation:
|
|
--
|
|
-- 2 trigger zones are defined using the mission editor.
|
|
-- The detection algorithm will detect the units within the zones and report them.
|
|
|
|
|
|
DetectionSetZones = SET_ZONE_GOAL:New():FilterPrefixes( { "Detection Zone" } ):FilterStart()
|
|
|
|
DetectionZone1 = ZONE_CAPTURE_COALITION:New( ZONE:New( "Detection Zone 1" ), coalition.side.RED )
|
|
|
|
DetectionZones = DETECTION_ZONES:New( DetectionSetZones, coalition.side.RED ):BoundDetectedZones():SmokeDetectedUnits()
|
|
|
|
DetectionZones:__Start( 5 ) |