Update SpawnStatic.lua

Fix SpawnFromZone()
This commit is contained in:
Thomas 2025-06-18 14:29:34 +02:00 committed by GitHub
parent eb2c6ac6f2
commit 8ec86973c6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -459,7 +459,8 @@ end
function SPAWNSTATIC:SpawnFromZone(Zone, Heading, NewName) function SPAWNSTATIC:SpawnFromZone(Zone, Heading, NewName)
-- Spawn the new static at the center of the zone. -- Spawn the new static at the center of the zone.
local Static = self:SpawnFromPointVec2( Zone:GetPointVec2(), Heading, NewName ) --local Static = self:SpawnFromPointVec2( Zone:GetPointVec2(), Heading, NewName )
local Static = self:SpawnFromCoordinate(Zone:GetCoordinate(), Heading, NewName)
return Static return Static
end end