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

Player::taskGoStraightToCoord

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

- timeout (-1 works, others seem to break)

- distanceToSlide (distance the player can slide if needed)

Syntax

<syntaxhighlight lang="javascript">player.taskGoStraightToCoord(x, y, z, speed, timeout, targetHeading, distanceToSlide);</syntaxhighlight>

Required Arguments

  • x: float
  • y: float
  • z: float
  • speed: float
  • timeout: int
  • targetHeading: float
  • distanceToSlide: float

Return value

  • Undefined

Example

<syntaxhighlight lang="javascript"> player.taskGoStraightToCoord(x, y, z, 6.2, -1, player.getHeading(), 2); </syntaxhighlight>

See also