Modules/Pathfinding/getNodeNeighbors

From Multi Theft Auto: Wiki
Revision as of 17:51, 3 February 2022 by Tracer (talk | contribs) (Created page with "<pageclass class="#AA7592" subcaption="Pathfinding Module"></pageclass> __NOTOC__ {{ModuleFunction|Pathfinding}} This function gets "neighbours" of a certain node. ==Syntax== <syntaxhighlight lang="c++"> table getNodeNeighbors(int graphId, int nodeId, int depth) </syntaxhighlight> ===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'''...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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