GetLowLODElement
From Multi Theft Auto: Wiki
This function return the low LOD element that an element is associated with.
Syntax
element getLowLODElement ( element theElement )
OOP Syntax Help! I don't understand this!
- Method: element:getLowLOD(...)
- Variable: .lowLOD
- Counterpart: setLowLODElement
Required Arguments
- theElement: The element whose low LOD version we want to get.
Returns
Returns a low LOD element if successful, false otherwise.
Example
Click to collapse [-]
Clientside exampleThis example is not done yet:
local obj = createObject(1488,0,0,3,0,0,90) -- Create object local lod_obj = createObject(1337,0,0,3,0,0,90,true) -- Create OD object setLowLODElement(obj,lod_obj) -- Setting LOD, 'attach' to obj local lod_get = getLowLODElement(obj) -- Get LOD from obj --lod_get = lod_obj
Requirements
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