For the complete documentation index, see llms.txt. This page is also available as Markdown.

SU.Map.GetDistancePath

SU Library: ab Version 0.7.0

SU.Map.GetDistancePath(x1, y1, x2, y2)

Liefert die Weg-Distanz zwischen 2 Punkten, die ein Siedler brauchen würde um von P1 nach P2 zu gelangen (die Richtung ist egal).

⇒ siehe auch SU.Map.GetDistanceLineOfSight

Parameter

  • x1,y1: Koordinaten vom Startpunkt

  • x2,y2: Koordinaten vom Endpunkt

Rückgabewert

  • Distanz

  • -1 sonst / Fehler

Beispiel

local distancePath = SU.Map.GetDistancePath(50, 70, 230, 40)

Last updated