EngineResetModelLODDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
m (Needs Example)
 
(One intermediate revision by one other user not shown)
Line 15: Line 15:


==Example==  
==Example==  
<syntaxhighlight lang="lua">
{{Needs Example}}
TODO
</syntaxhighlight>


==Requirements==
==Requirements==
{{Requirements|n/a|1.5.7-9.20283|}}
{{Requirements|n/a|1.5.7-9.20383|}}


==See Also==
==See Also==
{{Engine_functions}}
{{Engine_functions}}

Latest revision as of 18:00, 29 April 2024

This function resets the LOD distance for an object / model ID.

Syntax

bool engineResetModelLODDistance ( int model ) 

OOP Syntax Help! I don't understand this!

Method: Engine.resetModelLODDistance(...)


Required Arguments

  • model: The model / object ID number you want to reset the LOD distance of.

Returns

Returns true if the LOD distance was reset to default, or false if the model argument is incorrect, or the LOD distance hasn't been changed.

Example

Accessories-text-editor.png Script Example Missing Function EngineResetModelLODDistance needs a script example, help out by writing one.

Before submitting check out Editing Guidelines Script Examples.


Requirements

Minimum server version n/a
Minimum client version 1.5.7-9.20383

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 client="1.5.7-9.20383" />

See Also