OnCustomLinkTraversal
(traversal)
bool
Reached a link whose type this layer has no traversal of its own for. Add the type to the agent's
Sandbox.NavMeshAgent.AllowedLinkTypes for it to path over such links. Return true to cross it yourself: move the Sandbox.Npcs.Layers.NavigationLayer.Agent with
Sandbox.NavMeshAgent.SetAgentPosition(Vector3), then call Sandbox.Npcs.Layers.NavigationLayer.CompleteLinkTraversal, or
Sandbox.Npcs.Layers.NavigationLayer.AbortLinkTraversal if it cannot finish. Otherwise it is crossed like a plain link.