Template:ObjectLODInfo: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
(Replaced content with "{{Delete|Template not needed}}")
Tag: Replaced
 
Line 1: Line 1:
<noinclude>This template is used on object/building/models/LOD related pages. <hr></noinclude>
{{Delete|Template not needed}}
== [[File:Dialog-warning.svg|48px]] Important info about Object LOD (Level of Detail) ==
 
''(To determine the LOD model ID, use the editor resource, or refer to this [https://github.com/multitheftauto/mtasa-resources/blob/master/%5Beditor%5D/editor_main/server/mapEditorScriptingExtension_s.lua#L78 this table])''<br/>
If the model has a LOD version that you want to remove from the default map:
<syntaxhighlight lang="lua">
local lowLodModel = 13245
removeWorldModel ( lowLodModel, radius, x,y,z )
</syntaxhighlight>
 
Create a low LOD object for your high LOD object, so there is no hole in the map from a far distance:
<syntaxhighlight lang="lua">
local lowLodObject = createObject( lowLodModel, x,y,z, rx, ry, rz, true )
setElementParent(lowLodObject, obj) -- so the LLOD element is destroyed with the HLOD element
setLowLODElement(obj, lowLodObject) -- make the LOD assignment
</syntaxhighlight>

Latest revision as of 12:48, 4 November 2024

Edit-delete.png This page is marked for deletion.

Reason: Template not needed
Actions: Delete (Administrators) - Discuss - What links here - Category