mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Fixing problems with STATICS used for task transportation. I think it should work now.
This commit is contained in:
parent
47aaf6f6b2
commit
f8f000eae5
@ -188,7 +188,10 @@ function DATABASE:AddStatic( DCSStaticName )
|
||||
|
||||
if not self.STATICS[DCSStaticName] then
|
||||
self.STATICS[DCSStaticName] = STATIC:Register( DCSStaticName )
|
||||
return self.STATICS[DCSStaticName]
|
||||
end
|
||||
|
||||
return nil
|
||||
end
|
||||
|
||||
|
||||
|
||||
@ -183,8 +183,8 @@ function SPAWNSTATIC:SpawnFromPointVec2( PointVec2, Heading, NewName ) --R2.1
|
||||
local Static = coalition.addStaticObject( CountryID, StaticTemplate )
|
||||
|
||||
self.SpawnIndex = self.SpawnIndex + 1
|
||||
|
||||
return Static
|
||||
|
||||
return _DATABASE:AddStatic(Static:getName())
|
||||
end
|
||||
|
||||
return nil
|
||||
@ -216,7 +216,7 @@ function SPAWNSTATIC:ReSpawn()
|
||||
|
||||
local Static = coalition.addStaticObject( CountryID, StaticTemplate )
|
||||
|
||||
return Static
|
||||
return _DATABASE:AddStatic(Static:getName())
|
||||
end
|
||||
|
||||
return nil
|
||||
@ -247,7 +247,7 @@ function SPAWNSTATIC:ReSpawnAt( Coordinate, Heading )
|
||||
|
||||
local Static = coalition.addStaticObject( CountryID, StaticTemplate )
|
||||
|
||||
return Static
|
||||
return _DATABASE:AddStatic(Static:getName())
|
||||
end
|
||||
|
||||
return nil
|
||||
@ -265,6 +265,6 @@ function SPAWNSTATIC:SpawnFromZone( Zone, Heading, NewName ) --R2.1
|
||||
|
||||
local Static = self:SpawnFromPointVec2( Zone:GetPointVec2(), Heading, NewName )
|
||||
|
||||
return Static
|
||||
return _DATABASE:AddStatic(Static:getName())
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user