IsElementLowLOD
From Multi Theft Auto: Wiki
This function reveals if an element is low LOD.
Syntax
bool isElementLowLOD ( element theElement )
OOP Syntax Help! I don't understand this!
- Method: element:isLowLOD(...)
Required Arguments
- theElement: The element whose low LOD status we want to get.
Returns
Returns true if the element is low LOD, false otherwise.
Click to collapse [-]
ClientsideThis example will show how many low lods objects is around you.
addCommandHandler("lowlod",function () local lowlods = 0 for i, obj in ipairs(getElementsByType("object",root,true)) do if isElementLowLOD(obj) then lowlods = lowlods + 1 end end outputChatBox("Was found "..lowlods.." lowlod objects around you.",255,255,0) end)
Click to expand [+]
ServersideRequirements
Minimum supported server | 1.2 |
---|---|
Minimum supported client | 1.2 |
Note: Using this function requires the resource to have the above minimum version declared in the meta.xml <min_mta_version> section. e.g. <min_mta_version server="1.2" client="1.2" />
See Also
- attachElements
- clearElementVisibleTo
- cloneElement
- createElement
- destroyElement
- detachElements
- getAllElementData
- getAttachedElements
- getElementAlpha
- getElementAttachedOffsets
- getElementAttachedTo
- getElementCollisionsEnabled
- getElementByID
- getElementByIndex
- getElementChild
- getElementChildren
- getElementChildrenCount
- getElementColShape
- getElementData
- getElementDimension
- getElementHealth
- getElementID
- getElementInterior
- getElementMatrix
- getElementModel
- getElementParent
- getElementPosition
- getElementRotation
- getElementSyncer
- getElementType
- getElementVelocity
- getElementZoneName
- getElementsByType
- getElementsWithinColShape
- getLowLODElement
- getRootElement
- isElement
- isElementAttached
- isElementCallPropagationEnabled
- isElementDoubleSided
- isElementFrozen
- isElementInWater
- isElementLowLOD
- isElementVisibleTo
- isElementWithinColShape
- isElementWithinMarker
- removeElementData
- setElementAlpha
- setElementAngularVelocity
- getElementAngularVelocity
- setElementAttachedOffsets
- setElementCallPropagationEnabled
- setElementCollisionsEnabled
- setElementData
- setElementDimension
- setElementDoubleSided
- setElementFrozen
- setElementHealth
- setElementID
- setElementInterior
- setElementModel
- setElementParent
- setElementPosition
- setElementRotation
- setElementSyncer
- setElementVelocity
- setElementVisibleTo
- setLowLODElement