# Region Edge to Other Edge

#### BlackRose

##### Forum User
I want a unit to move from one point which is on the edge of the region to another edge... so it travels from like one edge to another.

How'd I go about doing this [potentially in the simplest most understable answer]?

#### Rushhour

##### New Member
JASS:
``````local real startX1=GetRectMinX(gg_rct_yourRect)
local real startY1=GetRectMaxY(gg_rct_yourRect)
local real targetX1=GetRectMaxX(gg_rct_yourRect)
local real targetY1=GetRectMinY(gg_rct_yourRect)
//order unit to move from startX1,startY1 to move to targetX1,targetY1
//moves from top left to bottom right

local real startX2=startX1
local real startY2=targetY1
local real targetX2=targetX1
local real targetY2=startY1
//moves units from bottom left to top right

call SetUnitPosition(unit,startX1/2, startY1/2)
call IssuePointOrder(unit,targetX1/2,targetY1/2)``````

#### BlackRose

##### Forum User
Is that from one random point on the edge to another random point of the opposite edge?

Looks like Corners.

#### Rushhour

##### New Member
JASS:
``````local real minY=GetRectMinY(gg_rct_yourRect)
local real maxY=GetRectMaxY(gg_rct_yourRect)
call SetUnitPosition(unit,GetRectMinX(gg_rct_yourRect),GetRandomReal(minY,maxY) )
call IssuePointOrder(unit,GetRectMaxX(gg_rct_yourRect),GetRandomReal(minY,maxY))
//something like this then? thought you wanted corner to corner``````

General chit-chat
Help Users
• No one is chatting at the moment.
• tom_mai78101:
Starting this upcoming Thursday, I will be in Japan for 10 days.
• tom_mai78101:
Thursday - Friday will be my Japan arrival flight. 9 days later, on a Sunday, will be my return departure flight.
+2
• The Helper:
Hope you have safe travels my friend!
+1
• vypur85:
Wow spring time in Japan is awesome. Enjoy!
• The Helper:
Hopefully it will be more pleasure than work
• vypur85:
Recently tried out ChatGPT about WE triggering. Wow it's capable of giving a somewhat legitimate response.
• The Helper:
I am sure it has read all the info on the forums here
• The Helper:
i think triggering is just scripting and chatgpt is real good at code
• vypur85:
Yeah I suppose so. It's interesting how it can explain in so much detail.
• vypur85:
But yet it won't work.
• The Helper:
it does a bad ass job doing excel vba code it has leveled me up at my job when I deal with excel that is for sure
• vypur85:
Nice! I love Excel coding as well. Has always been using Google to help me. Maybe I'll use ChatGPT next time when I need it.
• The Helper:
yeah whatever it puts out even if it is not perfect I can fix it and the latest version of chatgpt can create websites from pictures it will not be long until it can do that with almost all the tools
+1
• The Helper:
These new Chat AI programs are going to change everything everyone better Buckle the Fuck Up!
• The Helper:
oh and Happy Tuesday Evening!
+1
• jonas:
Im worried they'll change things for worse
• jonas:
A lot more low quality content, a lot more half-baked stuff.
• jonas:
If you're good enough to spot the mistakes of the answers you don't need it in the first place. If you aren't good enough, you're gonna rely on some half-correct stuff
• The Helper:
the earlier AI is and has been used extensively for publishing news and other content for a while now
• jonas:
I used to be active on quora, it's now flooded with extremely similar, superficial answers that often miss the point of the question
• N NJJ:
hi
• N NJJ:
Hello, gathering all my old accounts…
+1
• The Helper:
by all means gather it all up!

### Members online

No members online now.

### Network Sponsors

Apex Steel Pipe - Buys and sells Steel Pipe.