mirror of
https://github.com/FlightControl-Master/MOOSE_MISSIONS.git
synced 2026-08-30 22:17:54 +00:00
Updated Moose.lua
This commit is contained in:
+28
-28
@@ -1,28 +1,28 @@
|
||||
---
|
||||
-- Name: SPA-123 - Air Ops - Repeat on Landing and InitCleanUp
|
||||
-- Author: FlightControl
|
||||
-- Date Created: 15 Sep 2018
|
||||
--
|
||||
-- # Situation:
|
||||
--
|
||||
-- Helicpters spawn and are lightly shot until the crash land, but don't really destroy.
|
||||
-- The should be respawned after a while.
|
||||
-- No performance overhead should be noticed.
|
||||
|
||||
do
|
||||
|
||||
-- Declare SPAWN objects
|
||||
Spawn_KA_50 = SPAWN:New("KA-50"):InitLimit( 2, 10 )
|
||||
:InitLimit( 2, 0 )
|
||||
|
||||
-- Choose repeat functionality
|
||||
|
||||
-- Repeat on landing
|
||||
Spawn_KA_50:InitRepeatOnLanding()
|
||||
Spawn_KA_50:InitDelayOff()
|
||||
Spawn_KA_50:InitCleanUp( 300 )
|
||||
Spawn_KA_50:SpawnScheduled( 180, 0.2 )
|
||||
|
||||
-- Now run the mission and observe the behaviour.
|
||||
|
||||
end
|
||||
---
|
||||
-- Name: SPA-123 - Air Ops - Repeat on Landing and InitCleanUp
|
||||
-- Author: FlightControl
|
||||
-- Date Created: 15 Sep 2018
|
||||
--
|
||||
-- # Situation:
|
||||
--
|
||||
-- Helicpters spawn and are lightly shot until the crash land, but don't really destroy.
|
||||
-- The should be respawned after a while.
|
||||
-- No performance overhead should be noticed.
|
||||
|
||||
do
|
||||
|
||||
-- Declare SPAWN objects
|
||||
Spawn_KA_50 = SPAWN:New("KA-50"):InitLimit( 2, 10 )
|
||||
:InitLimit( 2, 0 )
|
||||
|
||||
-- Choose repeat functionality
|
||||
|
||||
-- Repeat on landing
|
||||
Spawn_KA_50:InitRepeatOnLanding()
|
||||
Spawn_KA_50:InitDelayOff()
|
||||
Spawn_KA_50:InitCleanUp( 300 )
|
||||
Spawn_KA_50:SpawnScheduled( 180, 0.2 )
|
||||
|
||||
-- Now run the mission and observe the behaviour.
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user