SetSpeed( <speed>, <acceleration>, <deceleration> )


Module: Vehicles

Summary:

Sets the speed and acceleration for this vehicle.



Call this on:

a vehicle



Example:

self SetSpeed( 60, 15, 5 );



Required Args:

  • 1 : <speed> The speed of the vehicle in miles per hour


Optional Args

  • 1 : <acceleration> The acceleration of the vehicle in miles per hour per second
  • 2 : <deceleration> Deceleration. If not specified, set to be equal to half of accleration