GSC reference › Built-in

CheckNavMeshDirection()

Built-in (engine) Server

Run a trace on NavMesh to get the furthest position a character can move in that direction

Signature

CheckNavMeshDirection(<start>, <dir>, <dist>, [characterRadius], [materialFlags])

Parameters

NameRequired?Details
startRequired start of the trace
dirRequired direction to trace
distRequired distance to trace
characterRadiusOptional the radius of the capsule used in trace. default to 0.
materialFlagsOptional the flags marking whether a face type can be used

Example (from Treyarch's docs)

pos = CheckNavMeshDirection( (10,20,30), ( 1, 1, 0 ), 25 )

Real uses in BO3's scripts

Called 4 times in the decompiled scripts. A few, zombies first:

Related built-ins

New to GSC?

Start with the basics, or paste a compile error to get the fix.

Built-in descriptions, parameters and examples come from Treyarch's BO3 mod tools docs. Usage links point at shiversoftdev/t7-source (decompiled BO3 scripts).