GetLowLODElement: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
(Missing example)
m (→‎Syntax: OOP)
Line 7: Line 7:
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
element getLowLODElement ( element theElement )
element getLowLODElement ( element theElement )
</syntaxhighlight>  
</syntaxhighlight>
{{OOP|This function is also a static function underneath the Element class.|[[element]]:getLowLOD|lowlod|}}


===Required Arguments===  
===Required Arguments===  

Revision as of 16:20, 16 August 2014

Accessories-text-editor.png 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!

Note: This function is also a static function underneath the Element class.
Method: element:getLowLOD(...)
Variable: .lowlod


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 [-]
Serverside example

This example is not done yet:


Requirements

Minimum server version 1.2
Minimum client version 1.2

Note: Using this feature 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