Pathfind::calculateTravelDistanceBetweenPoints: Difference between revisions
(yay) |
(yay) |
||
| Line 1: | Line 1: | ||
Calculates the travel distance between a set of points.<br><br>Doesn't seem to correlate with distance on gps sometimes.==Syntax==<syntaxhighlight lang="javascript">pathfind.calculateTravelDistanceBetweenPoints(x1, y1, z1, x2, y2, z2);</syntaxhighlight>=== Required Arguments ===*'''x1:''' float*'''y1:''' float*'''z1:''' float*'''x2:''' float*'''y2:''' float*'''z2:''' float===Return value===*'''float'''==Example==<syntaxhighlight lang="javascript">todo</syntaxhighlight>==See also=={{ | Calculates the travel distance between a set of points.<br><br>Doesn't seem to correlate with distance on gps sometimes. | ||
==Syntax== | |||
<syntaxhighlight lang="javascript">mp.game.pathfind.calculateTravelDistanceBetweenPoints(x1, y1, z1, x2, y2, z2);</syntaxhighlight> | |||
=== Required Arguments === | |||
*'''x1:''' float | |||
*'''y1:''' float | |||
*'''z1:''' float | |||
*'''x2:''' float | |||
*'''y2:''' float | |||
*'''z2:''' float | |||
===Return value=== | |||
*'''float''' | |||
==Example== | |||
<syntaxhighlight lang="javascript"> | |||
// todo | |||
</syntaxhighlight> | |||
==See also== | |||
{{Pathfind_s_function_c}} | |||
[[Category:Clientside API]] | |||
[[Category:TODO: Example]] | |||
Latest revision as of 21:28, 6 May 2017
Calculates the travel distance between a set of points.
Doesn't seem to correlate with distance on gps sometimes.
Syntax
mp.game.pathfind.calculateTravelDistanceBetweenPoints(x1, y1, z1, x2, y2, z2);
Required Arguments
- x1: float
- y1: float
- z1: float
- x2: float
- y2: float
- z2: float
Return value
- float
Example
// todo