Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- -- 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.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement