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

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


SetJitterParams( <range vector>, <min period>, <max period> )

Module: Vehicles

Summary:

Set the jitter parameters. Set everything to 0 to stop jittering. Vehicle ignores jitter parameters when on ground


Call this on: a vehicle

Example:

self SetJitterParams( (0,0,20), 0.5, 1.5 ); // Jitter up or down randomly within 20 units, switching every 0.5 to 1.5 seconds

Required arguments:

  1. <range vector> The jitter range vector.


Optional arguments:

  1. <min period> Minimum time in seconds to switch jitter direction. Default 0.5 sec
  2. <max period> Maximum time in seconds to switch jitter direction. Default 1.0 sec


Notes:

For player helicopters, the jitter params are used for jittering the pitch and roll of the helicopter