EngineImageGetFilesCount: Difference between revisions
Jump to navigation
Jump to search
TheNormalnij (talk | contribs) (Created page with "__NOTOC__ {{Client function}} This function returns the number of files an IMG file has. ==Syntax== <syntaxhighlight lang="lua"> int engineImageGetFilesCount ( img imgArchive ) </syntaxhighlight> {{OOP||img:getFilesCount||}} ===Required Arguments=== *'''imgArchive:''' the IMG archive handler ===Returns=== Returns an ''int'' with the number of files. ==Example== You could use the following code: <syntaxhighlight lang="lua"> local img = engineLoadIMG( "file.im...") |
TheNormalnij (talk | contribs) (Add variable param) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
int engineImageGetFilesCount ( img imgArchive ) | int engineImageGetFilesCount ( img imgArchive ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{OOP||[[img]]:getFilesCount| | {{OOP||[[img]]:getFilesCount|filesCount}} | ||
===Required Arguments=== | ===Required Arguments=== | ||
Line 26: | Line 26: | ||
==See Also== | ==See Also== | ||
{{Engine_functions}} | {{Engine_functions}} | ||
[[Category:Changes in 1.6.0]] |
Latest revision as of 19:30, 10 April 2023
This function returns the number of files an IMG file has.
Syntax
int engineImageGetFilesCount ( img imgArchive )
OOP Syntax Help! I don't understand this!
- Method: img:getFilesCount(...)
- Variable: .filesCount
Required Arguments
- imgArchive: the IMG archive handler
Returns
Returns an int with the number of files.
Example
You could use the following code:
local img = engineLoadIMG( "file.img" ) local count = engineImageGetFilesCount( img ) outputChatBox("'file.img' has " .. count .. " files")
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