Modules/Pathfinding/getNodeNeighbors

From Multi Theft Auto: Wiki
Jump to navigation Jump to search


Package-x-generic.png This function is provided by the external module Pathfinding. You must install this module to use this function.

This function gets "neighbours" of a certain node.

Syntax

table getNodeNeighbors(int graphId, int nodeId, int depth)

Required arguments

  • graphId: The id of the graph
  • nodeId: The id of the start node
  • depth: The depth of the node neighbors

Returns

Returns 4 integers representing nodeId and his position if a node was found, false otherwise.

Example

See Also

Functions