Skip to content

Commit

Permalink
Added mission Wrapper/Group/553-Patrol-in-a-list-of-zones/
Browse files Browse the repository at this point in the history
  • Loading branch information
kaltokri committed Feb 27, 2024
1 parent 7c014e8 commit 2ed935f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
-- Author: FlightControl
-- Created: 24.09.2017
-- Contributors: kaltokri
-- Modified: 27.02.2024
--
-- # Documentation:
-- https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/Wrapper.Group.html
-- https://flightcontrol-master.github.io/MOOSE_DOCS_DEVELOP/Documentation/Core.Zone.html
--
-- # Description:
-- In this mission two vehicles drive their routes selecting random points in random zones.
--
-- # 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" )

-- Patrol to random points in the zones ZONEVEHICLE1, ZONEVEHICLE2, ZONEVEHICLE3, at 120 km/h in Vee format.
Vehicle:PatrolZones(
{
ZONE:New( "ZONEVEHICLE1" ):DrawZone(),
ZONE:New( "ZONEVEHICLE2" ):DrawZone(),
ZONE:New( "ZONEVEHICLE3" ):DrawZone()
}, 120, "Vee" )

-- Patrol to random points in the zones ZONESHIP1, ZONESHIP2, ZONESHIP3, at 120 km/h in Vee format.
Ship:PatrolZones(
{
ZONE:New( "ZONESHIP1" ):DrawZone(),
ZONE:New( "ZONESHIP2" ):DrawZone(),
ZONE:New( "ZONESHIP3" ):DrawZone()
}, 120, "Vee" )
Binary file not shown.

0 comments on commit 2ed935f

Please sign in to comment.