Files
MOOSE_MISSIONS/GRP - Group Commands/GRP-612 - Respawn multiple units in Zone randomized/GRP-612 - Respawn multiple units in Zone randomized.lua
T
FlightControl 4a28f1f742 Clean
2018-10-20 05:38:54 +02:00

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()