Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to get distance of parts from another part?

Asked by 2 years ago

So I have "ships" and i have "ports." I want to get the distance of all the ships and find the closest port. All ships under folder "Ships" and ports under folder "Ports" and are all parts.

I also need it to constantly check while the ship is moving around to find the closest port.

Im really bad with magnitude so if anyone could help I would be very grateful!

Answer this question