mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixed the respawn problem and reworked the test mission directory structure
This commit is contained in:
46
Test Missions/Moose_Test_ESCORT/MOOSE_Test_ESCORT.lua
Normal file
46
Test Missions/Moose_Test_ESCORT/MOOSE_Test_ESCORT.lua
Normal file
@@ -0,0 +1,46 @@
|
||||
Include.File( "Mission" )
|
||||
Include.File( "Client" )
|
||||
Include.File( "Spawn" )
|
||||
Include.File( "Escort" )
|
||||
|
||||
|
||||
do
|
||||
|
||||
local function EventAliveHelicopter( Client )
|
||||
local SpawnEscortHeli = SPAWN:New( "Escort Helicopter" )
|
||||
local SpawnEscortPlane = SPAWN:New( "Escort Plane" )
|
||||
local SpawnEscortGround = SPAWN:New( "Escort Ground" )
|
||||
local EscortGroupHeli1 = SpawnEscortHeli:Spawn()
|
||||
local EscortHeli1 = ESCORT:New( Client, EscortGroupHeli1, "Escort Alpha" )
|
||||
local EscortGroupPlane = SpawnEscortPlane:Spawn()
|
||||
local EscortPlane = ESCORT:New( Client, EscortGroupPlane, "Escort Test Plane" )
|
||||
local EscortGroupGround = SpawnEscortGround:Spawn()
|
||||
local EscortGround = ESCORT:New( Client, EscortGroupGround, "Test Ground" )
|
||||
end
|
||||
|
||||
local function EventAlivePlane( Client )
|
||||
local SpawnEscortPlane = SPAWN:New( "Escort Plane" )
|
||||
local EscortGroupPlane = SpawnEscortPlane:Spawn()
|
||||
local EscortPlane = ESCORT:New( Client, EscortGroupPlane, "Escort Test Plane" )
|
||||
|
||||
local SpawnEscortGround = SPAWN:New( "Escort Ground" )
|
||||
local EscortGroupGround = SpawnEscortGround:Spawn()
|
||||
local EscortGround = ESCORT:New( Client, EscortGroupGround, "Test Ground" )
|
||||
|
||||
local SpawnEscortShip = SPAWN:New( "Escort Ship" )
|
||||
local EscortGroupShip = SpawnEscortShip:Spawn()
|
||||
local EscortShip = ESCORT:New( Client, EscortGroupShip, "Test Ship" )
|
||||
end
|
||||
|
||||
local EscortClientHeli = CLIENT:New( "Lead Helicopter", "Fly around and observe the behaviour of the escort helicopter" ):Alive( EventAliveHelicopter )
|
||||
local EscortClientPlane = CLIENT:New( "Lead Plane", "Fly around and observe the behaviour of the escort airplane. Select Navigate->Joun-Up and airplane should follow you. Change speed and directions." )
|
||||
:Alive( EventAlivePlane )
|
||||
|
||||
end
|
||||
|
||||
-- MISSION SCHEDULER STARTUP
|
||||
MISSIONSCHEDULER.Start()
|
||||
MISSIONSCHEDULER.ReportMenu()
|
||||
MISSIONSCHEDULER.ReportMissionsHide()
|
||||
|
||||
env.info( "Test Mission loaded" )
|
||||
BIN
Test Missions/Moose_Test_ESCORT/MOOSE_Test_ESCORT.miz
Normal file
BIN
Test Missions/Moose_Test_ESCORT/MOOSE_Test_ESCORT.miz
Normal file
Binary file not shown.
Reference in New Issue
Block a user