EngineImageLinkDFF: Difference between revisions
Jump to navigation
Jump to search
TheNormalnij (talk | contribs) (Fix API description, add example) |
TheNormalnij (talk | contribs) mNo edit summary |
||
Line 24: | Line 24: | ||
-- Load IMG | -- Load IMG | ||
local img = engineLoadIMG( "file.img" ) | local img = engineLoadIMG( "file.img" ) | ||
-- Enable streaming from this IMG | -- Enable streaming from this IMG | ||
engineAddImage( img ) | engineAddImage( img ) |
Revision as of 20:04, 10 April 2023
Syntax
boolean engineImageLinkDFF ( img img_file, string file_path, int modelID )
OOP Syntax Help! I don't understand this!
- Method: img:linkDFF(...)
Required Arguments
- img_file: The IMG file you want to link.
- file_path: Path to the DFF file you want to link.
- modelID: ID of the model you want to link to.
Returns
Returns true if IMG file was successfully linked, false otherwise.
Example
You could use the following code:
-- Load IMG local img = engineLoadIMG( "file.img" ) -- Enable streaming from this IMG engineAddImage( img ) -- Get model TXD id local infernusModelID = 411 local infernusModelTxdID = engineGetModelTXDID( infernusModelID ) -- Link DFF and TXD to IMG files engineImageLinkDFF( img, "infernus.dff", infernusModelID ) engineImageLinkTXD( img, "infernus.txd", infernusModelTxdID )
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