LodObject Type
The LodObject object type is created by ObjectTemplate.Create.
The LodObject type is the best way to optimize performance when it comes to polygon count
in the view of the camera. LOD stands for Level of Detail.
The LodObject allows you to setup different models and layouts
for different distance from the camera.
Models are added using AddTemplate, given in the order: complex, simple, and (optionally) wreck.
The complex version of a model is what you see most of the time, but the game will switch
to simpler version based on a given distance.
The wreck model is used when the object is
destroyed. Normally at the bottom of an Objects.con you will find the distance selector
that goes with this object. Also see GeometryTemplate.SetLodDistance.
Used in a total of 302 .con files: Objects.con Parent directories of these .con files: objects/Vehicles, objects/Objectives, objects/MOVE_FILES, objects/HandWeapons, objects/Buildings, Bf1942/Levels
Example: (from objects/HandWeapons/K98/Objects.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.
ObjectTemplate.Create LodObject K98Lod
ObjectTemplate.LodSelector HandWeaponLodSelector
ObjectTemplate.AddTemplate K98Complex
ObjectTemplate.AddTemplate K98Simple
ObjectTemplate.AddTemplate
ObjectTemplate.Create
ObjectTemplate.HasCollisionPhysics
ObjectTemplate.HasMobilePhysics
ObjectTemplate.HasResponsePhysics
ObjectTemplate.LodSelector
ObjectTemplate.Position
ObjectTemplate.SaveInSeparateFile
ObjectTemplate.SetPosition
ObjectTemplate.SetRotation