Modules/Pathfinding/findNodeAt

From Multi Theft Auto: Wiki
Revision as of 17:50, 3 February 2022 by Tracer (talk | contribs) (Created page with "<pageclass class="#AA7592" subcaption="Pathfinding Module"></pageclass> __NOTOC__ {{ModuleFunction|Pathfinding}} This function searches for certain node. ==Syntax== <syntaxhighlight lang="c++"> int, float, float, float findNodeAt(int graphId, float positionX, float positionY, float positionZ) </syntaxhighlight> ===Required arguments=== * '''graphId:''' The id of the graph * '''positionX, positionY, positionZ:''' The postion where to search for a node ===Returns=== Re...")
(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 searches for certain node.

Syntax

int, float, float, float findNodeAt(int graphId, float positionX, float positionY, float positionZ)

Required arguments

  • graphId: The id of the graph
  • positionX, positionY, positionZ: The postion where to search for a node

Returns

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

Example

See Also

Functions