GetPointInNavMesh

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin version 5.07.

Description

Given coordinates within currently loaded Navmesh, returns an array containing coordinates of the center of the 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) GetPointInNavMesh posX:float posY:float posZ:float skipDisabled:int(0/1) zLimit:float

Example

let aCoords := GetPointInNavMesh fX fY fZ 1 100 

See Also