Pathfind::isPointOnRoad: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
(yay)
 
Line 1: Line 1:
Gets a value indicating whether the specified position is on a road.<br>The vehicle parameter is not implemented (ignored).<br><br>-MulleDK19
Gets a value indicating whether the specified position is on a road.<br>The vehicle parameter is not implemented (ignored).<br><br>-MulleDK19
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">pathfind.isPointOnRoad(x, y, z, vehicle);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.pathfind.isPointOnRoad(x, y, z, vehicle);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''x:''' float
*'''x:''' float
Line 11: Line 11:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Pathfind_function_c}}
{{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

Gets a value indicating whether the specified position is on a road.
The vehicle parameter is not implemented (ignored).

-MulleDK19

Syntax

mp.game.pathfind.isPointOnRoad(x, y, z, vehicle);

Required Arguments

  • x: float
  • y: float
  • z: float
  • vehicle: Vehicle handle or object

Return value

  • Boolean

Example

// todo

See also

Template:Pathfind s function c