EngineGetModelLODDistance: Difference between revisions
Jump to navigation
Jump to search
(→See Also: +get/reset/setVehiclesLODDistance) |
mNo edit summary Tag: Reverted |
||
Line 23: | Line 23: | ||
==Requirements== | ==Requirements== | ||
{{Requirements|n/a|1.3.1-9.04779|}} | {{Requirements|n/a|1.3.1-9.04779|}} | ||
===Issues=== | |||
{{Issues| | |||
{{Issue|9139|Invalid model ID will crash when used with engine LOD distance functions.}} | |||
}} | |||
==See Also== | ==See Also== |
Revision as of 16:47, 4 August 2018
This function gets the LOD distance for any object / model ID.
Syntax
float engineGetModelLODDistance ( int model )
OOP Syntax Help! I don't understand this!
- Method: Engine.getModelLODDistance(...)
Required Arguments
- model: The model / object ID number you want to get the LOD distance of.
Returns
Returns a float representing the LOD distance of the model, or false if the model argument is incorrect.
Example
This example calculates the actual LOD distance by taking into account the Video tab 'Draw distance' setting
local LODDistance = engineGetModelLODDistance( 1337 ) local actualLODDistance = math.min( 300, LODDistance * ( dxGetStatus().SettingDrawDistance / 100 + 1 ) )
Requirements
This template will be deleted.
Issues
Issue ID | Description |
---|---|
#9139 | Invalid model ID will crash when used with engine LOD distance functions. |
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