EngineSetModelLODDistance: Difference between revisions
Jump to navigation
Jump to search
(New page: {{Client function}} __NOTOC__ ==Syntax== <syntaxhighlight lang="lua"> bool engineSetModelLODDistance ( model, distance ) </syntaxhighlight> ===Required Arguments=== *'''model:''' The model *'''distance:''' ...) |
No 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. | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool engineSetModelLODDistance ( model, distance ) | bool engineSetModelLODDistance ( model, float distance ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''model:''' The model | *'''model:''' The model / object ID number you want to change the LOD distance of. | ||
*'''distance:''' New LOD distance value. | *'''distance:''' New LOD distance value in San Andreas units. Normal LOD value: 300 | ||
===Returns=== | ===Returns=== |
Revision as of 22:13, 7 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.
Syntax
bool engineSetModelLODDistance ( 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. Normal LOD value: 300
Returns
Returns true if the function executed succesfully, false otherwise.
Example
Click to collapse [-]
Client-- TODO
See Also
- engineAddImage
- engineApplyShaderToWorldTexture
- engineFreeModel
- engineGetModelFlags
- engineGetModelIDFromName
- engineGetModelLODDistance
- engineGetModelNameFromID
- engineGetModelPhysicalPropertiesGroup
- engineGetModelTextureNames
- engineGetModelTextures
- engineGetModelTXDID
- engineGetModelVisibleTime
- engineGetObjectGroupPhysicalProperty
- engineGetSurfaceProperties
- engineGetVisibleTextureNames
- engineImageGetFilesCount
- engineImageGetFiles
- engineImageGetFile
- engineImageLinkDFF
- engineImageLinkTXD
- engineImportTXD
- engineLoadCOL
- engineLoadDFF
- engineLoadIMG
- engineLoadIFP
- engineLoadTXD
- engineRemoveImage
- engineRemoveShaderFromWorldTexture
- engineReplaceAnimation
- engineReplaceCOL
- engineReplaceModel
- engineRequestModel
- engineResetModelFlags
- engineResetModelLODDistance
- engineResetSurfaceProperties
- engineRestoreAnimation
- engineRestoreCOL
- engineRestoreDFFImage
- engineRestoreModel
- engineRestoreModelPhysicalPropertiesGroup
- engineRestoreObjectGroupPhysicalProperties
- engineRestoreTXDImage
- engineRestreamWorld
- engineSetAsynchronousLoading
- engineSetModelFlag
- engineSetModelFlags
- engineSetModelLODDistance
- engineSetModelPhysicalPropertiesGroup
- engineSetModelVisibleTime
- engineSetObjectGroupPhysicalProperty
- engineSetSurfaceProperties
- engineStreamingFreeUpMemory
- engineStreamingGetUsedMemory