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


Module: Vehicles

Summary:

Sets the speed and acceleration for this vehicle instantaneously. Direction will be toward the goal direction if there is a goal, otherwise the current direction.



Call this on:

a vehicle



Example:

self SetSpeedImmediate(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