Player::taskGoStraightToCoord

From RAGE Multiplayer Wiki

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

- distanceToSlide (distance the player can slide if needed)

Syntax

player.taskGoStraightToCoord(x, y, z, speed, timeout, targetHeading, distanceToSlide);

Required Arguments

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

Return value

  • Undefined

Example

player.taskGoStraightToCoord(x, y, z, 6.2, -1, player.getHeading(), 2);

See also