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

Pathfind::getNthClosestVehicleNodeFavourDirection

Материал из RAGE MP Wiki Archive
Версия от 21:28, 6 мая 2017; imported>Marty uploader (yay)
(разн.) ← Предыдущая версия | Текущая версия (разн.) | Следующая версия → (разн.)

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

<syntaxhighlight lang="javascript">mp.game.pathfind.getNthClosestVehicleNodeFavourDirection(x, y, z, desiredX, desiredY, desiredZ, nthClosest, outPosition, outHeading, nodetype, p10, p11);</syntaxhighlight>

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

<syntaxhighlight lang="javascript"> // todo </syntaxhighlight>

See also

Шаблон:Pathfind s function c