EngineSetModelLODDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 2: Line 2:
__NOTOC__
__NOTOC__
This function sets a custom LOD distance for any object / model ID. LOD distance is basically the same as draw distance. Objects with high LOD value can be seen from great distances.
This function sets a custom LOD distance for any object / model ID. LOD distance is basically the same as draw distance. Objects with high LOD value can be seen from great distances.
'''Note:''' the MTA streamer deletes objects that are further than 500 units away, regardless of LOD distance.


==Syntax==  
==Syntax==  
Line 10: Line 12:
===Required Arguments===  
===Required Arguments===  
*'''model:''' The model / object ID number you want to change the LOD distance of.
*'''model:''' The model / object ID number you want to change the LOD distance of.
*'''distance:''' New LOD distance value in San Andreas units. Normal LOD value: 300
*'''distance:''' New LOD distance value in San Andreas units.


===Returns===
===Returns===

Revision as of 18:48, 13 May 2009

This function sets a custom LOD distance for any object / model ID. LOD distance is basically the same as draw distance. Objects with high LOD value can be seen from great distances.

Note: the MTA streamer deletes objects that are further than 500 units away, regardless of LOD distance.

Syntax

bool engineSetModelLODDistance ( int model, float distance ) 

Required Arguments

  • model: The model / object ID number you want to change the LOD distance of.
  • distance: New LOD distance value in San Andreas units.

Returns

Returns true if the function executed succesfully, false otherwise.

Example

Click to collapse [-]
Client
-- TODO


See Also