mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2026-08-29 07:21:33 +00:00
19 lines
659 B
Lua
19 lines
659 B
Lua
--- This makes a vehicle respawn itself within ZONEVEHICLE1.
|
|
-- The vehicle group consists of multiple units and are spawned in randomized within the new zone.
|
|
--
|
|
-- Name: GRP-612 - Respawn multiple units in Zone randomized.
|
|
-- Author: FlightControl
|
|
-- Date Created: 01 Mar 2018
|
|
|
|
-- Find the Vehicle and create a GROUP object.
|
|
Vehicle = GROUP:FindByName( "Vehicle" )
|
|
|
|
-- Setup RespawnZone1 linking to the trigger zone ZONEVEHICLE1.
|
|
RespawnZone1 = ZONE:New( "ZONEVEHICLE1")
|
|
|
|
-- Prepare the spawning to be done in RespawnZone1.
|
|
Vehicle:InitZone( RespawnZone1 )
|
|
Vehicle:InitRandomizePositionZone( true )
|
|
|
|
-- Respawn the vehicle in RespawnZone1.
|
|
Vehicle:Respawn() |