ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Server functions
  3. setLowLODElement

Function

setLowLODElement

ServerMiscellaneousIdentical to MTA:SA

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 false to 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)

See also