Warehouse v0.5.1

Final polish.
This commit is contained in:
funkyfranky
2018-09-18 16:18:40 +02:00
parent f5022a12f8
commit bab1d21cc0
5 changed files with 28 additions and 16 deletions

View File

@@ -191,16 +191,14 @@ end
--- Respawns the original @{Static}.
-- @param #SPAWNSTATIC self
-- @param DCS#country.id (Optional) The country ID of the static after respawning..
-- @return #SPAWNSTATIC
function SPAWNSTATIC:ReSpawn(countryid)
function SPAWNSTATIC:ReSpawn()
local StaticTemplate, CoalitionID, CategoryID, CountryID = _DATABASE:GetStaticGroupTemplate( self.SpawnTemplatePrefix )
if StaticTemplate then
--local CountryID = countryid or (self.CountryID or CountryID)
local StaticUnitTemplate = StaticTemplate.units[1]
StaticTemplate.route = nil
StaticTemplate.groupId = nil