GetNearestNavMeshTriangle

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin version 5.07.

Description

Given coordinates within currently loaded cell grid, returns an array containing coordinates of the center of the nearest Navmesh triangle, and distance to it, as follows:

Index	Attribute
-----	---------
0	X - float
1	Y - float
2	Z - float
3	Distance - float

Two additional arguments allow skipping disabled navmesh triangles and (optionally) limit the search on Z-axis.

Syntax

[help]
(coords:array_var) GetNearestNavMeshTriangle posX:float posY:float posZ:float skipDisabled:int(0/1) zLimit:float

Example

let aCoords := GetNearestNavMeshTriangle fX fY fZ 1 100 

See Also