-
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.
Mission Wrapper/Group/611-Respawn-multiple-units-in-Zone added
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
Wrapper/Group/611-Respawn-multiple-units-in-Zone/GRP-611-Respawn-multiple-units-in-Zone.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,38 @@ | ||
--- | ||
-- Author: FlightControl | ||
-- Created: 01.03.2018 | ||
-- 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.Timer.html | ||
-- | ||
-- # Description: | ||
-- In this mission a vehicle group will be respawned in a zone. | ||
-- The vehicle group consists of multiple units and are spawned in relation to the original template position. | ||
-- The first unit will be placed at the center of the zone. | ||
-- | ||
-- # Guide: | ||
-- 1. Start the mission. | ||
-- 2. Take a look at F10 map. The vehicle group is outside of the zone. | ||
-- 3. Wait 10 seconds. | ||
-- 2. The vehicle group will be respawned. This time it is in the target zone. | ||
|
||
-- Find the Vehicle and create a GROUP object. | ||
Vehicle = GROUP:FindByName( "Vehicle" ) | ||
|
||
-- Setup RespawnZone1 linking to the trigger zone ZONEVEHICLE1. | ||
RespawnZone1 = ZONE:New( "ZONEVEHICLE1" ):DrawZone() | ||
|
||
-- Prepare the spawning to be done in RespawnZone1. | ||
Vehicle:InitZone( RespawnZone1 ) | ||
|
||
MESSAGE:New( "Vehicle will be respawned in 10 seconds in the zone!", 10 ):ToAll():ToLog() | ||
|
||
-- Respawn the vehicle 10 seconds after mission start. | ||
TIMER:New( | ||
function() | ||
Vehicle:Respawn( nil, true ) -- Parameters: #table Template, #boolean Reset position | ||
end | ||
):Start( 10 ) |
Binary file added
BIN
+748 KB
Wrapper/Group/611-Respawn-multiple-units-in-Zone/GRP-611-Respawn-multiple-units-in-Zone.miz
Binary file not shown.