Перейти к содержанию

Pathfind::calculateTravelDistanceBetweenPoints

Материал из RAGE MP Wiki Archive

Calculates the travel distance between a set of points.

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