GetLowLODElement: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (fix typo)
(Remove obsolete Requirements section)
 
Line 31: Line 31:
</section>
</section>


==Requirements==
{{Requirements|1.2|1.2}}
==See Also==
==See Also==
{{Element_functions}}
{{Element_functions}}

Latest revision as of 15:36, 7 November 2024

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 example

This 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 LOD object

setLowLODElement(obj,lod_obj) -- Setting LOD, 'attach' to obj

local lod_get = getLowLODElement(obj) -- Get LOD from obj

--lod_get = lod_obj 

See Also