- Documentation
- Server functions
- setLowLODElement
Function
setLowLODElement
Assigns an object its simplified version seen from afar (LOD). In Trilogy Hub draw distances are computed by Unreal Engine, so the assignment is stored for compatibility with existing scripts (getLowLODElement) but does not change the in-game look.
Syntax
bool setLowLODElement(element theElement, element|bool lowLODElement)Arguments
theElementelement- The object.
lowLODElementelement|bool- The LOD object or
falseto detach.
Returns
true on success.
Example
local tower = createObject(4550, 1000, -1000, 20)
local towerLOD = createObject(4550, 1000, -1000, 20, 0, 0, 0, true)
setLowLODElement(tower, towerLOD)