Fixing SPAWNING of STATICS for CARGO and respawning of STATICS for CARGO. Please test.

This commit is contained in:
FlightControl
2018-09-16 15:37:22 +02:00
parent f8f000eae5
commit a0502a12fa
5 changed files with 101 additions and 54 deletions

View File

@@ -154,7 +154,7 @@ do -- CARGO_CRATE
if self.CargoObject then
self:T("Destroying")
self.NoDestroy = true
self.CargoObject:Destroy()
self.CargoObject:Destroy( false ) -- Do not generate a remove unit event, because we want to keep the template for later respawn in the database.
--local Coordinate = self.CargoObject:GetCoordinate():GetRandomCoordinateInRadius( 50, 20 )
--self.CargoObject:ReSpawnAt( Coordinate, 0 )
end