Fixed error in SPAWN:RandomizeTemplate()

-- Units started in wrong x, y position (at the template, instead of at
the master template of the SPAWN).
-- Adjusted x, y and alt to the start position of the first unit of the
master template.
-- Added a test mission Moose_Test_SPAWN_RandomizeTemplate.
-- Regenerated MOOSE.lua
This commit is contained in:
Sven Van de Velde
2016-08-03 20:51:48 +02:00
parent 70f8234cd7
commit 88e280fee3
4 changed files with 27 additions and 9 deletions

View File

@@ -0,0 +1,10 @@
-- Tests Gudauta
-- --------------
-- Limited spawning of groups, scheduled every 15 seconds, with RandomizeTemplate ...
Templates = { "Template1", "Template2", "Template3", "Template4" }
Spawn_Ground1 = SPAWN:New( "Spawn Vehicle1" ):Limit( 4, 20 ):RandomizeTemplate(Templates):SpawnScheduled( 15, 0 )
Spawn_Ground2 = SPAWN:New( "Spawn Vehicle2" ):Limit( 4, 20 ):RandomizeTemplate(Templates):SpawnScheduled( 15, 0 )