Pathfind::getVehicleNodeProperties: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
MulleDK19: Gets the density and flags of the closest node to the specified position.<br>Density is a value between 0 and 15, indicating how busy the road is.<br>Flags is a bit field. | MulleDK19: Gets the density and flags of the closest node to the specified position.<br>Density is a value between 0 and 15, indicating how busy the road is.<br>Flags is a bit field. | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">pathfind.getVehicleNodeProperties(x, y, z, density, flags);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.pathfind.getVehicleNodeProperties(x, y, z, density, flags);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''x:''' float | *'''x:''' float | ||
| Line 12: | Line 12: | ||
==Example== | ==Example== | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
todo | // todo | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See also== | ==See also== | ||
{{ | {{Pathfind_s_function_c}} | ||
[[Category:Clientside API]] | [[Category:Clientside API]] | ||
[[Category:TODO: Example]] | [[Category:TODO: Example]] | ||
Latest revision as of 21:28, 6 May 2017
MulleDK19: Gets the density and flags of the closest node to the specified position.
Density is a value between 0 and 15, indicating how busy the road is.
Flags is a bit field.
Syntax
mp.game.pathfind.getVehicleNodeProperties(x, y, z, density, flags);
Required Arguments
- x: float
- y: float
- z: float
- density: int
- flags: int
Return value
- object: density, flags
Example
// todo