EngineReplaceAnimation: Difference between revisions
Jump to navigation
Jump to search
CrosRoad95 (talk | contribs) No edit summary |
(→Syntax) |
||
Line 5: | Line 5: | ||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool engineReplaceAnimation ( | bool engineReplaceAnimation ( ped thePed, string InternalBlockName, string InternalAnimName, string CustomBlockName, string CustomAnimName ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
===Required Arguments=== | ===Required Arguments=== | ||
*'''InternalBlockName:''' | *'''thePed:''' the [[player]] or [[ped]] you want to replace an animation for. | ||
*'''InternalAnimName:''' | *'''InternalBlockName:''' the internal block name. | ||
*'''CustomBlockName:''' | *'''InternalAnimName:''' the internal animation name inside InternalBlockName. | ||
*'''CustomAnimName:''' | *'''CustomBlockName:''' the custom block name of the loaded IFP file that you passed to [[EngineLoadIFP|engineLoadIFP]] as second parameter. | ||
*'''CustomAnimName:''' the custom animation name inside the loaded IFP file with CustomBlockName. | |||
===Returns=== | ===Returns=== | ||
Returns ''true'' on success, ''false'' in case of failure. | Returns ''true'' on success, ''false'' in case of failure. |
Revision as of 17:33, 18 June 2018
Replace existed animation with other.
Syntax
bool engineReplaceAnimation ( ped thePed, string InternalBlockName, string InternalAnimName, string CustomBlockName, string CustomAnimName )
Required Arguments
- thePed: the player or ped you want to replace an animation for.
- InternalBlockName: the internal block name.
- InternalAnimName: the internal animation name inside InternalBlockName.
- CustomBlockName: the custom block name of the loaded IFP file that you passed to engineLoadIFP as second parameter.
- CustomAnimName: the custom animation name inside the loaded IFP file with CustomBlockName.
Returns
Returns true on success, false in case of failure.
Example
-- @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