Engine Type

The Engine object type is created by ObjectTemplate.Create.

The Engine object in Battlefield 1942 is used to genereate thrust for vehicles, weapons, and other objects. There are six types of engines, specified by the SetEngineType property. Land engines generate thrust through child spring objects, while the other engine types generate thrust directly from the engine itself.

The amount of thrust generated depends on a number of factors, including SetTorque, SetDifferential, SetNumberOfGears, and a number of rotation related properties.

SetTorque controls the amount of power an engine has, SetDifferential multiplies the torque for an increase in speed, but a loss of power (climbing ability), while SetNumberOfGears control the amount of power applied to the springs.

The rotation (SetMaxRotation, SetMinRotation, SetAcceleration, SetMaxSpeed) controls the increment of the throttle (SetInputToRoll). Applying the the throttle will increase the rotation of the engine by the amount of acceleration specified until the maximum rotation is reached.

See SetGearUp for a full explanation about gears.

Child Objects

Most engines have child objects added with AddTemplate. For land engines, springs or tank tracks are needed to drive on, while planes will usually have a propeller and landing gear.

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

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

Example: (from objects/Vehicles/Air/AichiVal-T/Physics.con)
   rem *** Aichival-TEngine ***
   ObjectTemplate.Create Engine Aichival-TEngine
   ObjectTemplate.SetNetworkableInfo Aichival-T_engine_info
   ObjectTemplate.LoadSoundScript Sounds/AichivalEngine.ssc
   rem -------------------------------------
   ObjectTemplate.AddTemplate lodAichival-TPropeller
   rem -------------------------------------
   ObjectTemplate.SetMinRotation -0.3/0/-3000
   ObjectTemplate.SetMaxRotation 0.3/0/5000
   ObjectTemplate.SetMaxSpeed 1000/0/500
   ObjectTemplate.SetAcceleration 500/0/1000
   ObjectTemplate.SetInputToRoll c_PIThrottle
   ObjectTemplate.SetAutomaticReset 1
   ObjectTemplate.SetEngineType c_ETPlane
   ObjectTemplate.SetTorque 15
   ObjectTemplate.SetDifferential 5
   ObjectTemplate.SetGearUp 0.7
   ObjectTemplate.SetGearDown 0.3
   ObjectTemplate.SetNoPropellerEffectAtSpeed 70

Properties used with this type of object:
   ObjectTemplate.Acceleration
   ObjectTemplate.Accumulate
   ObjectTemplate.AddTemplate
   ObjectTemplate.AirFlowAffect
   ObjectTemplate.AttachToListener
   ObjectTemplate.AttackSpeed
   ObjectTemplate.AutomaticReset
   ObjectTemplate.ConstantRpm
   ObjectTemplate.ContinousRotationSpeed
   ObjectTemplate.Create
   ObjectTemplate.DecreaseAngleToZero
   ObjectTemplate.DefaultAngleOfAttack
   ObjectTemplate.Differential
   ObjectTemplate.EngineType
   ObjectTemplate.GearChangeTime
   ObjectTemplate.GearDown
   ObjectTemplate.GearUp
   ObjectTemplate.Geometry
   ObjectTemplate.HasCollisionPhysics
   ObjectTemplate.HasMobilePhysics
   ObjectTemplate.HasResponsePhysics
   ObjectTemplate.HeatIncrement
   ObjectTemplate.HorizontalDampAngle
   ObjectTemplate.HorizontalSpeedMagnifier
   ObjectTemplate.InputToRoll
   ObjectTemplate.InputToYaw
   ObjectTemplate.InverseHeatBar
   ObjectTemplate.LoadSoundScript
   ObjectTemplate.MaxAngleOfAttack
   ObjectTemplate.MaxRotation
   ObjectTemplate.MaxSpeed
   ObjectTemplate.MinRotation
   ObjectTemplate.NetworkableInfo
   ObjectTemplate.NoPropellerEffectAtSpeed
   ObjectTemplate.NumberOfGears
   ObjectTemplate.PivotPosition
   ObjectTemplate.PropRotAxis
   ObjectTemplate.PureRotational
   ObjectTemplate.RemoteEngineInput
   ObjectTemplate.SaveInSeparateFile
   ObjectTemplate.SetAcceleration
   ObjectTemplate.SetAttachToListener
   ObjectTemplate.SetAutomaticReset
   ObjectTemplate.SetContinousRotationSpeed
   ObjectTemplate.SetDifferential
   ObjectTemplate.SetEngineType
   ObjectTemplate.SetGearChangeTime
   ObjectTemplate.SetGearDown
   ObjectTemplate.SetGearUp
   ObjectTemplate.SetHeatBarType
   ObjectTemplate.SetInputToRoll
   ObjectTemplate.SetInputToYaw
   ObjectTemplate.SetMaxRotation
   ObjectTemplate.SetMaxSpeed
   ObjectTemplate.SetMinRotation
   ObjectTemplate.SetNetworkableInfo
   ObjectTemplate.SetNoPropellerEffectAtSpeed
   ObjectTemplate.SetNumberOfGears
   ObjectTemplate.SetPivotPosition
   ObjectTemplate.SetPosition
   ObjectTemplate.SetRotation
   ObjectTemplate.SetTorque
   ObjectTemplate.SpinWhenNoEngineInAir
   ObjectTemplate.Torque


Go to the ObjectTemplate type list page, ObjectTemplate page, All Types list, Class list, CON file list, or Main scripting page.