Warehouse v0.1.8w

This commit is contained in:
funkyfranky
2018-08-16 16:20:36 +02:00
parent 3ce59eee35
commit 22da329fca
4 changed files with 248 additions and 51 deletions

View File

@@ -141,11 +141,12 @@ end
--- Respawn the @{Wrapper.Unit} at the same location with the same properties.
-- This is useful to respawn a cargo after it has been destroyed.
-- @param #STATIC self
function STATIC:ReSpawn()
-- @param DCS#country.id countryid The country ID used for spawning the new static.
function STATIC:ReSpawn(countryid)
local SpawnStatic = SPAWNSTATIC:NewFromStatic( self.StaticName )
SpawnStatic:ReSpawn()
SpawnStatic:ReSpawn(countryid)
end