Wing Type
The Wing object type is created by ObjectTemplate.Create.
This object is what generates lift in Battlefield 1942. As the speed of the wing increases,
so does its effect. Wings are used in planes (for lift and steering), boats (for steering),
and bombs (for aiming). A Wing object is similar to a RotationalBundle
because it can also be rotated (although only on the "pitch" axis). The important properties
for this type of object are SetWingLift (the amount of lift the wing generates from its
initial position) and SetFlapLift (the amount of lift the wing generates as it is rotated).
The other properties are used to adjust the position, visual representation, and other miscellaneous
settings.
Wings are usually horizontaly by default (only the pitch can be rotated). So, when making rudders,
the wing must be rotated with the SetRotation command when it is added to the parent object.
Used in a total of 58 .con files: Physics.con, Weapons.con Parent directories of these .con files: objects/Vehicles, Bf1942/Levels
Example: (from objects/Vehicles/Air/Natter/Physics.con) Properties used with this type of object: Go to the ObjectTemplate type list page, ObjectTemplate page, All Types list, Class list, CON file list, or Main scripting page.
rem *** NatterAirbreakLeft ***
ObjectTemplate.Create Wing NatterAirbreakLeft
ObjectTemplate.SetNetworkableInfo Natter_wing_info
ObjectTemplate.SetMinRotation 0/-2/0
ObjectTemplate.SetMaxRotation 0/2/0
ObjectTemplate.SetMaxSpeed 0/30/0
ObjectTemplate.SetAcceleration 0/120/0
ObjectTemplate.SetPitchOffset -1
ObjectTemplate.SetPositionOffset 1.539/-0.05/0.883
ObjectTemplate.SetFlapLift 2
ObjectTemplate.SetRegulateToLift 4.91
ObjectTemplate.SetWingToRegulatorRatio 1
ObjectTemplate.Acceleration
ObjectTemplate.AutomaticReset
ObjectTemplate.Create
ObjectTemplate.FlapLift
ObjectTemplate.Geometry
ObjectTemplate.InputToPitch
ObjectTemplate.LoadSoundScript
ObjectTemplate.MaxRotation
ObjectTemplate.MaxSpeed
ObjectTemplate.MinRotation
ObjectTemplate.NetworkableInfo
ObjectTemplate.PitchOffset
ObjectTemplate.PositionOffset
ObjectTemplate.RememberExcessInput
ObjectTemplate.SetAcceleration
ObjectTemplate.SetAutomaticReset
ObjectTemplate.SetFlapLift
ObjectTemplate.SetInputToPitch
ObjectTemplate.SetMaxRotation
ObjectTemplate.SetMaxSpeed
ObjectTemplate.SetMinRotation
ObjectTemplate.SetNetworkableInfo
ObjectTemplate.SetPitchOffset
ObjectTemplate.SetPivotPosition
ObjectTemplate.SetPositionOffset
ObjectTemplate.SetRegulateToLift
ObjectTemplate.SetWingLift
ObjectTemplate.SetWingToRegulatorRatio
ObjectTemplate.WingLift