diff --git a/Scripts/Range.lua b/Scripts/Range.lua index 60bf1ad..cdf643f 100644 --- a/Scripts/Range.lua +++ b/Scripts/Range.lua @@ -471,7 +471,7 @@ do local spawnPoint = {} for i=1,100,1 do - local tPoint = Utils.vecTranslate(centerPoint,tDir,math.random(100,2000)) --Spawn range + local tPoint = Utils.vecTranslate(centerPoint,tDir,math.random(100,1000)) --Spawn range if Utils.pointInPolygon(tPoint,sectionZone.points) then if land.getSurfaceType(tPoint) ~= land.SurfaceType.WATER or land.getSurfaceType(tPoint) ~= land.SurfaceType.SHALLOW_WATER then spawnPoint = tPoint @@ -482,7 +482,8 @@ do if not spawnPoint then spawnPoint.x = centerPoint.x+50 - spawnPoint.y = centerPoint.z+50 or centerPoint.y+50 + spawnPoint.y = centerPoint.z or centerPoint.y + spawnPoint.y = spawnPoint.y+50 end groupData.units[k].x = spawnPoint.x