LandingGear Type

The LandingGear object type is created by ObjectTemplate.Create.

The landing gear system is similar to a RotationalBundle. It allow geometry to be rotate a certain angle at a certain speed. However, the LandingGear type allows the input to be based on engine speed or even height from the ground.

Landing gear is usually created in the Objects.con file and referenced by the engine in the Physics.con file.

Used in a total of 23 .con files: Objects.con

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

Example: (from objects/Vehicles/Air/Goblin/Objects.con)
   rem *** GoblinLandingGearL ***
   ObjectTemplate.Create LandingGear GoblinLandingGearL
   rem ObjectTemplate.loadSoundScript ../Common/Sounds/LandingGear.ssc
   ObjectTemplate.HasMobilePhysics 1
   ObjectTemplate.HasCollisionPhysics 1
   ObjectTemplate.HasResponsePhysics 1
   rem -------------------------------------
   ObjectTemplate.AddTemplate GoblinWheel3
   ObjectTemplate.SetPosition -0.259/-2.1/0.3
   rem -------------------------------------
   ObjectTemplate.SetMinRotation -20/0/-79
   ObjectTemplate.SetMaxSpeed 10/0/1000
   ObjectTemplate.SetAcceleration -5/0/0
   ObjectTemplate.SetGearDownHeight 0
   ObjectTemplate.SetGearDownEngineInput 0
   ObjectTemplate.SetGearUpEngineInput 0.3
   ObjectTemplate.SetGearUpHeight 6
   ObjectTemplate.CreateInvisible 1

Properties used with this type of object:
   ObjectTemplate.Acceleration
   ObjectTemplate.AddTemplate
   ObjectTemplate.Create
   ObjectTemplate.CreateInvisible
   ObjectTemplate.GearDownEngineInput
   ObjectTemplate.GearDownHeight
   ObjectTemplate.GearUpEngineInput
   ObjectTemplate.Geometry
   ObjectTemplate.HasCollisionPhysics
   ObjectTemplate.HasMobilePhysics
   ObjectTemplate.HasResponsePhysics
   ObjectTemplate.LoadSoundScript
   ObjectTemplate.MaxRotation
   ObjectTemplate.MaxSpeed
   ObjectTemplate.MinRotation
   ObjectTemplate.SetAcceleration
   ObjectTemplate.SetGearDownEngineInput
   ObjectTemplate.SetGearDownHeight
   ObjectTemplate.SetGearUpEngineInput
   ObjectTemplate.SetGearUpHeight
   ObjectTemplate.SetMaxRotation
   ObjectTemplate.SetMaxSpeed
   ObjectTemplate.SetMinRotation
   ObjectTemplate.SetPosition
   ObjectTemplate.SetRotation


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