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 Args:

  • 1 : <range vector> The jitter range vector.


Optional Args

  • 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