EngineSetModelLODDistance: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
(Mention GTA 300 unit limit)
Line 3: Line 3:
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.
'''Note:''' the MTA streamer deletes objects that are further than 500 units away, regardless of LOD distance.<br>
Also, GTA currently has the limitation whereby the object will not be displayed if the distance to the object center is more than 300 units.


==Syntax==  
==Syntax==  

Revision as of 08:10, 4 June 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.
Also, GTA currently has the limitation whereby the object will not be displayed if the distance to the object center is more than 300 units.

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