-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added mission Wrapper/Group/553-Patrol-in-a-list-of-zones/
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
Wrapper/Group/553-Patrol-in-a-list-of-zones/GRP-553-Patrol-in-a-list-of-zones.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+748 KB
Wrapper/Group/553-Patrol-in-a-list-of-zones/GRP-553-Patrol-in-a-list-of-zones.miz
Binary file not shown.