GetLowLODElement: Difference between revisions
Jump to navigation
Jump to search
m (fix oop) |
|||
Line 17: | Line 17: | ||
==Example== | ==Example== | ||
<section name=" | <section name="Clientside example" class="client" show="true"> | ||
This example is not done yet: | This example is not done yet: | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
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 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
</section> | </section> | ||
==Requirements== | ==Requirements== | ||
{{Requirements|1.2|1.2}} | {{Requirements|1.2|1.2}} | ||
==See Also== | ==See Also== | ||
{{Element_functions}} | {{Element_functions}} |
Revision as of 13:08, 16 November 2016
Script Example Missing Function GetLowLODElement needs a script example, help out by writing one. | |
Before submitting check out Editing Guidelines Script Examples. |
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
This template will be deleted.
See 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