Change target unit spawn range to 100m-2000m
This commit is contained in:
+1
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user