Added mission Wrapper/Group/552-Patrol-in-a-zone

This commit is contained in:
kaltokri 2024-02-27 17:08:21 +01:00
parent 534f2b54ae
commit 7c014e8af7
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
---
-- Author: FlightControl
-- Created: 24.09.2017
-- Contributors: kaltokri
-- Modified: 26.02.2024
--
-- # Documentation:
-- https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/Wrapper.Group.html
--
-- # Description:
-- In this mission two vehicles drive its route selecting random points in a zone.
--
-- # Guide:
-- 1. Start the mission and wait some seconds.
-- 2. Press F10 to observe the ship and the tank traveling around in the zones.
-- 3. Use time acceleration to shorten waiting times
-- Find the Vehicles and create GROUP objects.
Vehicle = GROUP:FindByName( "Vehicle" )
Ship = GROUP:FindByName( "Ship" )
-- Find zones and create ZONE objects and mark both zones on the F10 map.
local zoneVehicle = ZONE:New( "ZONEVEHICLE" ):DrawZone()
local zoneShip = ZONE:New( "ZONESHIP" ):DrawZone()
-- Patrol to random points in the trigger zone at 120 km/h in Vee format.
Vehicle:PatrolZones( { zoneVehicle }, 120, "Vee" )
Ship:PatrolZones( { zoneShip }, 120, "Vee" )