IsElementLowLOD: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
{{Server client function}} | {{Server client function}} | ||
This function reveals if an element is low LOD. | This function reveals if an element is low LOD. | ||
{{Note|See [[setLowLODElement]] for the list of valid element types that can be assigned with that function.}} | |||
==Syntax== | ==Syntax== | ||
Line 15: | Line 17: | ||
Returns ''true'' if the element is low LOD, ''false'' otherwise. | Returns ''true'' if the element is low LOD, ''false'' otherwise. | ||
==Example== | |||
<section name="Clientside" class="client" show="true"> | <section name="Clientside" class="client" show="true"> | ||
This example will show how many low lods objects is around you. | This example will show how many low lods objects is around you. | ||
Line 45: | Line 48: | ||
</section> | </section> | ||
==See Also== | ==See Also== | ||
{{Element_functions}} | {{Element_functions}} |
Latest revision as of 15:39, 7 November 2024
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.
Example
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 [+]
ServersideSee Also
- attachElements
- createElement
- destroyElement
- detachElements
- getAttachedElements
- getElementAlpha
- getElementAttachedOffsets
- getElementAttachedTo
- getElementByIndex
- getElementByID
- getElementChild
- getElementChildren
- getElementChildrenCount
- getElementCollisionsEnabled
- getElementColShape
- getElementData
- getAllElementData
- hasElementData
- getElementDimension
- getElementHealth
- getElementID
- getElementInterior
- getElementMatrix
- getElementModel
- getElementParent
- getElementPosition
- getElementRotation
- getElementsByType
- getElementsWithinColShape
- getElementsWithinRange
- getElementType
- getElementVelocity
- getLowLODElement
- getRootElement
- isElement
- isElementAttached
- isElementCallPropagationEnabled
- isElementDoubleSided
- isElementFrozen
- isElementInWater
- isElementLowLOD
- isElementWithinColShape
- isElementWithinMarker
- setElementAlpha
- setElementAngularVelocity
- getElementAngularVelocity
- setElementAttachedOffsets
- setElementCallPropagationEnabled
- setElementCollisionsEnabled
- setElementData
- setElementDimension
- setElementDoubleSided
- setElementFrozen
- setElementHealth
- setElementID
- setElementInterior
- setElementModel
- setElementParent
- setElementPosition
- setElementRotation
- setElementVelocity
- setLowLODElement
- getPedContactElement
- getResourceDynamicElementRoot
- getResourceRootElement