Usage:
ObjectTemplate.SetNumberOfGears
number
Argument values:
argument 1: |
range is 1 to 5; most commonly 5
|
Description: This property sets the number of gears that an Engine has.
See the Engine description for details, and see SetGearUp for more explanation about gears.
Related properties: SetDifferential,
SetEngineType, SetGearChangeTime,
SetGearDown, SetGearUp,
SetNumberOfGears, SetTorque
Used in object types (and how often in each type): Engine (23%)
Used in a total of 32 .con files: Physics.con
Parent directory of these .con files: objects/Vehicles
Example: (from objects/Vehicles/Land/BlackMedal/Physics.con)
rem *** BlackMedalEngine ***
ObjectTemplate.Create Engine BlackMedalEngine
ObjectTemplate.SetNetworkableInfo BlackMedalEngineInfo
ObjectTemplate.SetAttachToListener 1
ObjectTemplate.LoadSoundScript Sounds/BlackMedalEngine.ssc
ObjectTemplate.HasMobilePhysics 1
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.AddTemplate BlackMedalFrontWheelR
ObjectTemplate.SetPosition 0.55/0.08/0.92
ObjectTemplate.AddTemplate BlackMedalFrontWheelL
ObjectTemplate.SetPosition -0.549/0.08/0.92
ObjectTemplate.AddTemplate BlackMedalBackSpringR
ObjectTemplate.SetPosition 0.55/-0.472/-1.179
ObjectTemplate.AddTemplate BlackMedalBackSpringL
ObjectTemplate.SetPosition -0.549/-0.472/-1.179
rem -------------------------------------
ObjectTemplate.SetMinRotation 0/0/-5000
ObjectTemplate.SetMaxRotation 0/0/5000
ObjectTemplate.SetMaxSpeed 0/0/55000
ObjectTemplate.SetAcceleration 0/0/55000
ObjectTemplate.SetInputToRoll c_PIThrottle
ObjectTemplate.SetAutomaticReset 1
ObjectTemplate.SetEngineType c_ETCar
ObjectTemplate.SetTorque 12.5
ObjectTemplate.SetDifferential 7
ObjectTemplate.SetNumberOfGears 5
ObjectTemplate.SetGearUp 0.95
ObjectTemplate.SetGearDown 0.4
Go to the ObjectTemplate properties
list page, ObjectTemplate page,
All Properties list,
or Main scripting page.