Pathfind::getNthClosestVehicleNodeFavourDirection: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
See gtaforums.com/topic/843561-pathfind-node-types for node type info. 0 = paved road only, 1 = any road, 3 = water<br><br>p10 always equal 0x40400000<br>p11 always equal 0 | See gtaforums.com/topic/843561-pathfind-node-types for node type info. 0 = paved road only, 1 = any road, 3 = water<br><br>p10 always equal 0x40400000<br>p11 always equal 0 | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="javascript">pathfind.getNthClosestVehicleNodeFavourDirection(x, y, z, desiredX, desiredY, desiredZ, nthClosest, outPosition, outHeading, nodetype, p10, p11);</syntaxhighlight> | <syntaxhighlight lang="javascript">mp.game.pathfind.getNthClosestVehicleNodeFavourDirection(x, y, z, desiredX, desiredY, desiredZ, nthClosest, outPosition, outHeading, nodetype, p10, p11);</syntaxhighlight> | ||
=== Required Arguments === | === Required Arguments === | ||
*'''x:''' float | *'''x:''' float | ||
| Line 19: | Line 19: | ||
==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
See gtaforums.com/topic/843561-pathfind-node-types for node type info. 0 = paved road only, 1 = any road, 3 = water
p10 always equal 0x40400000
p11 always equal 0
Syntax
mp.game.pathfind.getNthClosestVehicleNodeFavourDirection(x, y, z, desiredX, desiredY, desiredZ, nthClosest, outPosition, outHeading, nodetype, p10, p11);
Required Arguments
- x: float
- y: float
- z: float
- desiredX: float
- desiredY: float
- desiredZ: float
- nthClosest: int
- outPosition: Vector3
- outHeading: float
- nodetype: int
- p10: unknown (to be checked)
- p11: unknown (to be checked)
Return value
- object: outPosition, outHeading, , ,
Example
// todo