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.
Syntax
Section titled “Syntax”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) |
Returns
Section titled “Returns”number - metres; nil off the mesh
Example
Section titled “Example”local floor = GetNavmeshHeight(x, y, z) or GetTerrainHeight(x, y) or zCreateActor("guard_a", x, y, floor, 0, "Guard")See also
Section titled “See also”GetTerrainHeight · NearestNavmeshPoint · the The world - clock, weather, terrain, the navmesh, the geometry group of the index
