Change target unit spawn range to 100m-2000m

This commit is contained in:
2025-01-03 18:40:53 +08:00
parent 3e600ead0d
commit cb05bd0925
+1 -1
View File
@@ -468,7 +468,7 @@ do
local spawnPoint = {} local spawnPoint = {}
for i=1,100,1 do for i=1,100,1 do
local tPoint = Utils.vecTranslate(centerPoint,tDir,math.random(10,500)) local tPoint = Utils.vecTranslate(centerPoint,tDir,math.random(100,2000)) --Spawn range
if Utils.pointInPolygon(tPoint,sectionZone.points) then if Utils.pointInPolygon(tPoint,sectionZone.points) then
if land.getSurfaceType(tPoint) ~= land.SurfaceType.WATER or land.getSurfaceType(tPoint) ~= land.SurfaceType.SHALLOW_WATER then if land.getSurfaceType(tPoint) ~= land.SurfaceType.WATER or land.getSurfaceType(tPoint) ~= land.SurfaceType.SHALLOW_WATER then
spawnPoint = tPoint spawnPoint = tPoint