SetLodDistance Property

Usage:
   GeometryTemplate.SetLodDistance number number

Argument values:

argument 1:    range is 0 to 5; most commonly 0
argument 2:    range is 0 to 10000; most commonly 0

Description: This property sets which LOD (Level Of Detail) of the model will be seen at a particular distance. Here is an example:

 GeometryTemplate.Create StandardMesh italianhouse09_m1
 GeometryTemplate.File italianhouse09_m1
 GeometryTemplate.SetLodDistance 0 0
 GeometryTemplate.SetLodDistance 1 50
 GeometryTemplate.SetLodDistance 2 100
 GeometryTemplate.SetLodDistance 3 200
 GeometryTemplate.SetLodDistance 4 400
 GeometryTemplate.SetLodDistance 5 800

The first argument represents the LOD that will be shown to a player (0 is for the first LOD, 1 is for the second LOD, etc.). The second argument represents the distance (in meters) at which you will begin to see the LOD. Each subsequent LOD has less detail than the one before it. A model can have up to six meshes that represent it. The number of IDs must match the number of LODs you are using in the exported mesh.

Used in object types (and how often in each type): AnimatedMesh (4%), StandardMesh (84%)

Used in a total of 990 .con files: Effects.con, Geometries.con, Objects.con

Parent directories of these .con files: objects/Vehicles, objects/Vegetation, objects/Stationary_Weapons, objects/Objectives, objects/MOVE_FILES, objects/Items, objects/HandWeapons, objects/Effects, objects/Common, objects/Buildings, Bf1942/Levels

Example: (from objects/Vehicles/Air/Mustang/Geometries.con)
   GeometryTemplate.Create StandardMesh Mustang_whe1_M1
   GeometryTemplate.File Mustang_whe1_M1
   GeometryTemplate.SetLodDistance 0 0
   GeometryTemplate.SetLodDistance 1 20
   GeometryTemplate.SetLodDistance 2 60
   GeometryTemplate.SetLodDistance 3 100


Go to the GeometryTemplate properties list page, GeometryTemplate page, All Properties list, or Main scripting page.