mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2025-08-15 10:37:46 +00:00
24 lines
584 B
Lua
24 lines
584 B
Lua
---
|
|
-- Name: CAP-001 - Combat Air Patrol
|
|
-- Author: FlightControl
|
|
-- Date Created: 16 January 2017
|
|
--
|
|
-- # Situation:
|
|
-- The Su-27 airplane will patrol in PatrolZone.
|
|
-- It will not engage any enemy automatically.
|
|
--
|
|
-- # Test cases:
|
|
--
|
|
-- 1. Observe the Su-27 patrolling.
|
|
--
|
|
|
|
local CapPlane = GROUP:FindByName( "Plane" )
|
|
|
|
local PatrolZone = ZONE:New( "Patrol Zone" )
|
|
|
|
AICapZone = AI_CAP_ZONE:New( PatrolZone, 500, 1000, 500, 600 )
|
|
|
|
AICapZone:SetControllable( CapPlane )
|
|
|
|
AICapZone:__Start( 1 ) -- They should statup, and start patrolling in the PatrolZone.
|