Modules/Pathfinding/getNodeNeighbors: Difference between revisions
Jump to navigation
Jump to search
(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'''...") |
(No difference)
|
Latest revision as of 17:51, 3 February 2022
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.