EngineLoadIFP: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
This function loads an animation library (IFP) file into GTA. | This function loads an animation library (IFP) file into GTA. | ||
* This function '''does not replace''' animations yet | * This function '''does not replace''' the default animations yet. | ||
* To use this correctly, you need to use an IFP file with '''new''' animation blocks with different names than existing ones. | * To use this correctly, you need to use an IFP file with '''new''' animation blocks with different names than existing ones. | ||
Be sure to transfer your IFP file by including it in the meta file. | |||
==Syntax== | ==Syntax== |
Revision as of 13:27, 10 December 2010
This function loads an animation library (IFP) file into GTA.
- This function does not replace the default animations yet.
- To use this correctly, you need to use an IFP file with new animation blocks with different names than existing ones.
Be sure to transfer your IFP file by including it in the meta file.
Syntax
ifp engineLoadIFP ( string ifp_file )
Required Arguments
- ifp_file: The filepath to the IFP file you want to load
Returns
Returns an IFP element if the IFP file loaded, false otherwise.
Example
Click to collapse [-]
animation.luafunction setanimation() if engineLoadIFP("data/ani.ifp") then setPedAnimation(getLocalPlayer(), "ANIMATIONBLOCK", "animation1") end end addCommandHandler("animation", setanimation)
Click to collapse [-]
meta.xml<meta> <info author="lukry" version="1.0" type="script" /> <script src="animation.lua" type="client" /> <file src="data/ani.ifp" /> </meta>
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