Player::taskBoatMission

From RAGE Multiplayer Wiki

You need to call Player::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS after TASK_BOAT_MISSION in order for the task to execute.

Working example
float vehicleMaxSpeed = VEHICLE::_GET_VEHICLE_MAX_SPEED(ENTITY::GET_ENTITY_MODEL(pedVehicle));
Player::TASK_BOAT_MISSION(pedDriver, pedVehicle, 0, 0, waypointCoord.x, waypointCoord.y, waypointCoord.z, 4, vehicleMaxSpeed, 786469, -1.0, 7);
Player::SET_BLOCKING_OF_NON_TEMPORARY_EVENTS(pedDriver, 1);

P8 appears to be driving style flag - see gtaforums.com/topic/822314-guide-driving-styles/ for documentation

Syntax

player.taskBoatMission(boat, p2, p3, x, y, z, p7, maxSpeed, p9, p10, p11);

Required Arguments

  • boat: Vehicle handle or object
  • p2: unknown (to be checked)
  • p3: unknown (to be checked)
  • x: float
  • y: float
  • z: float
  • p7: unknown (to be checked)
  • maxSpeed: float
  • p9: unknown (to be checked)
  • p10: float
  • p11: unknown (to be checked)

Return value

  • Undefined

Example

// todo

See also