Pathfinding

Static methods

Method

Description

FindNearestNode(position)

Finds the pathfinding node nearest to the given position

FindNearestNode(position, type, underWater)

Finds the pathfinding node nearest to the given position

FindNodes(center, radius)

Finds all infantry pathfinding nodes within the given sphere.

FindNodes(center, radius, type, underWater)

Finds all pathfinding nodes of a given type within a sphere

Details

class Pathfinding
static PathfindingNode FindNearestNode(Vector3 position)

Finds the pathfinding node nearest to the given position

Returns

A pathfinding node or nil if none is found.

static PathfindingNode FindNearestNode(Vector3 position, PathfindingNodeType type, bool underWater)

Finds the pathfinding node nearest to the given position

Parameters

underWater – Include nodes that are located under water?

Returns

A pathfinding node or nil if none is found.

static array<PathfindingNode> FindNodes(Vector3 center, float radius)

Finds all infantry pathfinding nodes within the given sphere.

static array<PathfindingNode> FindNodes(Vector3 center, float radius, PathfindingNodeType type, bool underWater)

Finds all pathfinding nodes of a given type within a sphere

Parameters

underWater – Include nodes that are located under water?