Usage:
ObjectTemplate.SetGearUpHeight
number
Argument values:
argument 1: | range is 2 to 28; most commonly 23 |
Description: For an airplane, if engine RPM is above SetGearUpEngineInput and the plane is higher than this height in meters off the ground, the landing gear is pulled in (the wheels come up).
BF 1942 uses the value 23 for all aircraft.
Related properties: SetGearDownEngineInput, SetGearDownHeight, SetGearUpEngineInput
Used in object types (and how often in each type): LandingGear (33%)
Used in a total of 10 .con files: Objects.con
Parent directory of these .con files: objects/Vehicles
Example: (from objects/Vehicles/Air/Zero/Objects.con)
rem *** ZeroLandingGearLeft ***
ObjectTemplate.Create LandingGear ZeroLandingGearLeft
ObjectTemplate.LoadSoundScript ../Common/Sounds/LandingGear.ssc
ObjectTemplate.Geometry zero_landinggear_left_m1
ObjectTemplate.HasMobilePhysics 1
ObjectTemplate.HasCollisionPhysics 1
ObjectTemplate.HasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.AddTemplate ZeroWheelLeft
ObjectTemplate.SetPosition 0.087/-1.45/-0.042
rem -------------------------------------
ObjectTemplate.SetMaxRotation 0/0/85
ObjectTemplate.SetMaxSpeed 0/0/28
ObjectTemplate.SetAcceleration 0/0/90
ObjectTemplate.SetGearDownHeight 25
ObjectTemplate.SetGearUpHeight 23
ObjectTemplate.SetGearDownEngineInput 0.55
Go to the ObjectTemplate properties list page, ObjectTemplate page, All Properties list, or Main scripting page.