Player::taskVehiclePark

From RAGE Multiplayer Wiki

Modes:
0 - ignore heading
1 - park forward
2 - park backwards

Depending on the angle of approach, the vehicle can park at the specified heading or at its exact opposite (-180) angle.

Radius seems to define how close the vehicle has to be -after parking- to the position for this task considered completed. If the value is too small, the vehicle will try to park again until it's exactly where it should be. 20.0 Works well but lower values don't, like the radius is measured in centimeters or something.

Syntax

player.taskVehiclePark(vehicle, x, y, z, heading, mode, radius, keepEngineOn);

Required Arguments

  • vehicle: Vehicle handle or object
  • x: float
  • y: float
  • z: float
  • heading: float
  • mode: int
  • radius: float
  • keepEngineOn: Boolean

Return value

  • Undefined

Example

// todo

See also