From f3efdf3c310410888b6577a3753dc83a4668954a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=BC=E5=A4=9C=E7=8B=8E=E6=98=B5?= <1046295287@qq.com> Date: Mon, 30 Dec 2024 20:35:34 +0800 Subject: [PATCH] Daily update. --- Scripts/Range.lua | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/Scripts/Range.lua b/Scripts/Range.lua index 65adc54..4767a9a 100644 --- a/Scripts/Range.lua +++ b/Scripts/Range.lua @@ -37,24 +37,34 @@ do local sectionName = '-Urban-'..j points = Utils.getWayPoints(zoneGroupName..sectionName) - if points then - Range.drawPolygon(points) - trigger.action.textToAll(-1,Utils.getMarkID(),Utils.makeVec3(points[1]),{1,1,1,1},{0,0,0,0},8,false,sectionName) + if not points then + break end - - sectionName = '-Tree-'..j + + Range.drawPolygon(points) + trigger.action.textToAll(-1,Utils.getMarkID(),Utils.makeVec3(points[1]),{1,1,1,1},{0,0,0,0},8,false,sectionName) + end + + for j=1,100,1 do + local sectionName = '-Tree-'..j points = Utils.getWayPoints(zoneGroupName..sectionName) - if points then - Range.drawPolygon(points) - trigger.action.textToAll(-1,Utils.getMarkID(),Utils.makeVec3(points[1]),{1,1,1,1},{0,0,0,0},8,false,sectionName) + if not points then + break end - sectionName = '-Open-'..j + Range.drawPolygon(points) + trigger.action.textToAll(-1,Utils.getMarkID(),Utils.makeVec3(points[1]),{1,1,1,1},{0,0,0,0},8,false,sectionName) + end + + for j=1,100,1 do + local sectionName = '-Open-'..j points = Utils.getWayPoints(zoneGroupName..sectionName) - if points then - Range.drawPolygon(points) - trigger.action.textToAll(-1,Utils.getMarkID(),Utils.makeVec3(points[1]),{1,1,1,1},{0,0,0,0},8,false,sectionName) + if not points then + break end + + Range.drawPolygon(points) + trigger.action.textToAll(-1,Utils.getMarkID(),Utils.makeVec3(points[1]),{1,1,1,1},{0,0,0,0},8,false,sectionName) end end