Skip to content

GetNavmeshHeight

The navigation mesh’s floor at a point.

The height of the walkable surface under (or near) the point - a floor, a bridge, a stair - where GetTerrainHeight only knows the terrain. nil more than 2 m from the mesh sideways or 4 m up or down, or without a navmesh.

GetNavmeshHeight(x, y, z)
Parameter Type
x number metres
y number metres
z number a height near the floor asked for (the floor above or below within 4 m)

number - metres; nil off the mesh

local floor = GetNavmeshHeight(x, y, z) or GetTerrainHeight(x, y) or z
CreateActor("guard_a", x, y, floor, 0, "Guard")

GetTerrainHeight · NearestNavmeshPoint · the The world - clock, weather, terrain, the navmesh, the geometry group of the index