SetAcceleration Property

Usage:
   ObjectTemplate.SetAcceleration x/y/z

Argument values:

argument 1:    -110/0/0, -150/0/0, -5/0/-1000, -5/0/-85, -5/0/0, -50/0/0, -72/0/0, -90/0/-90, 0/-0.1/0, 0/-10/-40, 0/-10/0, 0/-10/40, 0/-1000/0, 0/-110/0, 0/-120/0, 0/-15/0, 0/-150/0, 0/-30/0, 0/-36/0, 0/-38/0, 0/-5/-70, ...

Description: When used in Objects.con, this is the amount of acceleration per second an object can gain or lose when rotating in a plane of rotation. See SetRotation for an explanation of the planes of rotation. A lower value means it is slower to get the object moving in response to the mouse. For example, the defgun has 0/75/0 and tank turrets are 0/1000/0, meaning that you can whip the tank turrets around but it's slow going to get the defgun to start turning and to reverse its direction. SetMaxSpeed sets the maximum speed an object can turn in response to a mouse move.

When used in Physics.con in an Engine object, acceleration sets how quickly the engine accelerates when changing between speed settings, e.g., low acceleration will make turning sluggish but will increase in response the longer you hold the throttle key. Having it set very high should make the car start to alter speed settings more rapidly (which results in faster response). This controls how quickly the SetMaxSpeed part can get up to its set speeds, which in turn sets how quickly the engine changes between the individual speed segments. See SetMinRotation for more information.

All these settings (SetMinRotation, SetMaxRotation, SetMaxSpeed, and SetAcceleration) control how an engine responds to player input, they do not otherwise change the speed chracteristics of a vehicle in any other way.

Related properties: SetMinRotation, SetMaxRotation, SetMaxSpeed, SetRotation

Used in object types (and how often in each type): Camera (66%), Engine (63%), FloatingBundle (10%), LandingGear (69%), RotationalBundle (69%), Wing (77%)

Used in a total of 167 .con files: Objects.con, Physics.con, Weapons.con

Parent directories of these .con files: objects/Vehicles, objects/Stationary_Weapons, objects/Objectives, objects/Buildings, Bf1942/Levels

Example: (from objects/Vehicles/Land/T34/Physics.con)
   rem *** T34Engine ***
   rem TopSpeed: 47 km/h
   ObjectTemplate.Create Engine T34Engine
   ObjectTemplate.SetNetworkableInfo T34EngineInfo
   ObjectTemplate.SetAttachToListener 1
   ObjectTemplate.LoadSoundScript Sounds/T34Engine.ssc
   ObjectTemplate.HasMobilePhysics 1
   rem -------------------------------------
   ObjectTemplate.AddTemplate T34TrackL
   ObjectTemplate.SetPosition -1.291/-0.243/-0.013
   ObjectTemplate.AddTemplate T34TrackR
   ObjectTemplate.SetPosition 1.292/-0.243/-0.013
   rem -------------------------------------
   ObjectTemplate.SetMinRotation -1/0/-1
   ObjectTemplate.SetMaxRotation 1/0/1
   ObjectTemplate.SetMaxSpeed 4/0/10
   ObjectTemplate.SetAcceleration 4/0/10
   ObjectTemplate.SetInputToYaw c_PIYaw
   ObjectTemplate.SetInputToRoll c_PIThrottle
   ObjectTemplate.SetAutomaticReset 1
   ObjectTemplate.SetEngineType c_ETTank
   ObjectTemplate.SetTorque 3.5
   ObjectTemplate.SetDifferential 3.5
   ObjectTemplate.SetNumberOfGears 5
   ObjectTemplate.SetGearUp 0.95
   ObjectTemplate.SetGearDown 0.45
   ObjectTemplate.SetGearChangeTime 0.05


Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.