mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Warehouse
little updates static countryid
This commit is contained in:
parent
85640c5884
commit
f4f942d8d4
@ -200,10 +200,8 @@ function SPAWNSTATIC:ReSpawn(countryid)
|
|||||||
|
|
||||||
if StaticTemplate then
|
if StaticTemplate then
|
||||||
|
|
||||||
local CountryID = countryid or self.CountryID
|
--local CountryID = countryid or (self.CountryID or CountryID)
|
||||||
local CountryName = _DATABASE.COUNTRY_NAME[CountryID]
|
|
||||||
|
|
||||||
StaticTemplate.units = nil
|
|
||||||
StaticTemplate.route = nil
|
StaticTemplate.route = nil
|
||||||
StaticTemplate.groupId = nil
|
StaticTemplate.groupId = nil
|
||||||
|
|
||||||
|
|||||||
@ -197,9 +197,9 @@ end
|
|||||||
-- @param DCS#country.id countryid The country ID used for spawning the new static.
|
-- @param DCS#country.id countryid The country ID used for spawning the new static.
|
||||||
function STATIC:ReSpawn(countryid)
|
function STATIC:ReSpawn(countryid)
|
||||||
|
|
||||||
local SpawnStatic = SPAWNSTATIC:NewFromStatic( self.StaticName )
|
local SpawnStatic = SPAWNSTATIC:NewFromStatic( self.StaticName, countryid )
|
||||||
|
|
||||||
SpawnStatic:ReSpawn(countryid)
|
SpawnStatic:ReSpawn()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user