Call of Duty 4: Scripting Reference - Vehicles::SetYawSpeed

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Jump to: navigation, search


SetYawSpeed( <speed>, <acceleration>, <deceleration>, <overshoot percent> )

Module: Vehicles

Summary:

Sets the yaw speed for this vehicle.


Call this on: a vehicle

Example:

self SetYawSpeed( 120, 60 );

Required arguments:

  1. <speed> The speed of the vehicle in angles per second
  2. <acceleration> The acceleration of the vehicle in angles per second^2


Optional arguments:

  1. <deceleration> Deceleration. If not specified, set to be equal to acceleration
  2. <overshoot percent> How much to over shoot goal yaw by. Default 0.1


Notes:

none