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

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


JoltBody( <jolt position>, <intensity>, <speedFrac>, <deceleration> )

Module: Vehicles
SP Only

Summary:

Jolts the vehicle.


Call this on: a vehicle

Example:

self JoltBody( (self.origin + (0,0,64)), 0.5 );

Required arguments:

  1. <jolt position> The position of the jolt
  2. <intensity> The intensity of the jolt


Optional arguments:

  1. <speedFrac> A speed fraction to apply to the jolt. Most be betweeon 0 and 1.
  2. <deceleration> The deceleration to apply to this vehicle in miles per hour per second.


Notes:

none