LOD0

LOD1

Entity flags, indicate with which LOD step the entity was displayed in the last frame. Can be used to expand or reduce entity actions depending on the entity distance from the camera.

LOD1
LOD0
Step
OFF
OFF
0
OFF
ON
1
ON
OFF
2
ON
ON
3

Type:

flag (eflags) , read only

Example:

// Run a particle effect when the entity is at LOD step 0
if ((my.LOD1 == OFF) && (my.LOD0 == OFF)) { emit_particles(); } 
if (!(my.eflags&(LOD1|LOD0))) { emit_particles(); } 

See also:

LOD, NOLOD, d3d_lodfactor, shadow_lod, CLIP0, CLIP1

► latest version online