GetNavLinks
The nav links with an end near a point.
Syntax
Section titled “Syntax”GetNavLinks(x, y, z, radius)| Parameter | Type | |
|---|---|---|
x |
number | metres |
y |
number | metres |
z |
number | metres |
radius |
number | metres |
Returns
Section titled “Returns”table - a list of {id, x1, y1, z1, x2, y2, z2, radius, twoWay, type, layer, persist, by, revision}, the nearest first (at most 256)
Example
Section titled “Example”for _, l in ipairs(GetNavLinks(1281, 1093, 28, 20)) do Log(string.format("link %d: %s, %s", l.id, l.type, l.twoWay and "both ways" or "one way"))endSee also
Section titled “See also”CreateNavLink · DeleteNavLink · the The server’s map group of the index
