Usage:
ObjectTemplate.SetGearChangeTime
number
Argument values:
argument 1: | 0.05 |
Description: This property modifies how fast the automatic gearing changes. It is set for land vehicles in Physics.con. For example, 0.05 means it takes a twentieth of a second to change from one gear to another. Note that planes do not have this value set, meaning that the gear change happens instantly.
See SetGearUp for more explanation about gears.
Related properties: SetGearDown, SetGearUp, SetNumberOfGears, SetTorque, SetDifferential, SetEngineType, SetNoPropellerEffectAtSpeed
Used in object types (and how often in each type): Engine (18%)
Used in a total of 25 .con files: Physics.con
Parent directory of these .con files: objects/Vehicles
Example: (from objects/Vehicles/Land/Katyusha/Physics.con)
rem *** Katyusha_Engine ***
ObjectTemplate.Create Engine Katyusha_Engine
ObjectTemplate.SetNetworkableInfo KatEngineInfo
ObjectTemplate.SetAttachToListener 1
ObjectTemplate.LoadSoundScript Sounds/KatyushaEngine.ssc
ObjectTemplate.HasMobilePhysics 1
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.AddTemplate Katyusha_Wheel_BackL
ObjectTemplate.SetPosition -1.1/-0.5/-4.399
ObjectTemplate.AddTemplate Katyusha_Wheel_BackR
ObjectTemplate.SetPosition 1.1/-0.5/-4.399
ObjectTemplate.AddTemplate Katyusha_Wheel_BackLDummy
ObjectTemplate.SetPosition -1.099/-0.5/-2.999
ObjectTemplate.AddTemplate Katyusha_Wheel_BackRDummy
ObjectTemplate.SetPosition 1.1/-0.5/-2.999
rem -------------------------------------
ObjectTemplate.SetMinRotation 0/0/-1
ObjectTemplate.SetMaxRotation 0/0/1
ObjectTemplate.SetMaxSpeed 0/0/10
ObjectTemplate.SetAcceleration 0/0/10
ObjectTemplate.SetInputToRoll c_PIThrottle
ObjectTemplate.SetAutomaticReset 1
ObjectTemplate.SetEngineType c_ETCar
ObjectTemplate.SetTorque 3.5
ObjectTemplate.SetDifferential 5
ObjectTemplate.SetNumberOfGears 4
ObjectTemplate.SetGearUp 0.85
ObjectTemplate.SetGearDown 0.4
ObjectTemplate.SetGearChangeTime 0.05
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.