Modules/Pathfinding/loadPathGraph: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Created page with "<pageclass class="#AA7592" subcaption="Pathfinding Module"></pageclass> __NOTOC__ {{ModuleFunction|Pathfinding}} This function loads a path. ==Syntax== <syntaxhighlight lang="lua"> int loadPathGraph(string path) </syntaxhighlight> ===Required arguments=== * '''path:''' The path to the graph definition file (relative to the resource directory) ===Returns=== Returns ''graphId'' if everything went fine, ''false'' otherwise. ==Example== <!-- TODO: Write an example -->...")
 
m (Changed formatting)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
==Syntax==
==Syntax==


<syntaxhighlight lang="lua">
<syntaxhighlight lang="c++">
int loadPathGraph(string path)
int loadPathGraph(string path)
</syntaxhighlight>
</syntaxhighlight>
Line 14: Line 14:


===Returns===
===Returns===
Returns ''graphId'' if everything went fine, ''false'' otherwise.
Returns '''graphId''' if everything went fine, '''false''' otherwise.


==Example==
==Example==

Latest revision as of 17:44, 3 February 2022


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

This function loads a path.

Syntax

int loadPathGraph(string path)

Required arguments

  • path: The path to the graph definition file (relative to the resource directory)

Returns

Returns graphId if everything went fine, false otherwise.

Example

See Also

Functions