MDL functions (zPE)
Functions to tweak animation and other model related settings.
Mdl_GetAnimationIndex
Mdl_GetAnimationIndex
Returns animation's index for specified NPC based on animation's name
- npc- NPC with the animation
- ani_name- name of the animation in uppercase
- return- animation index
Mdl_GetAnimationName
Mdl_GetAnimationName
Returns animation's name for specified NPC based on animation's index
- npc- NPC with the animation
- ani_index- animation index
- return- animation name
Mdl_AnimationIsExists
Mdl_AnimationIsExists
Checks whether animation exists
- npc- NPC with the animation
- ani_index- animation index
- return- animation name
Mdl_AnimationIsActive
Mdl_AnimationIsActive
Checks whether animation is active (whether it is currently played)
- npc- NPC with the animation
- ani_index- animation index
- return-- TRUEif the animation is playing,- FALSEif it is not playing
Mdl_SetAllAnimationsFPS
Mdl_SetAllAnimationsFPS
Set framerate for all animations
- npc- NPC with the animation
- fps- framerate
Mdl_ResetAllAnimationsFPS
Mdl_ResetAllAnimationsFPS
Reset framerate for all animations to default value
- npc- NPC with the animation
Mdl_SetAnimationFPS
Mdl_SetAnimationFPS
Set framerate for animation specified by animation index
- npc- NPC with the animation
- ani_index- animation index
- fps- framerate
Mdl_ResetAnimationFPS
Mdl_ResetAnimationFPS
Reset framerate to default for animation specified by animation index
- npc- NPC with the animation
- ani_index- animation index
Mdl_SetVisible
Mdl_SetVisible
Set NPCs visibility
- npc- specified NPC
- isVisible-- TRUE- visible,- FALSE- invisible
Mdl_ApplyOverlayMds_AtFirst
Mdl_ApplyOverlayMds_AtFirst
Applies or moves existing overlay to the top of the list
- mdsName- name of the overlay
Mdl_SetNpcSpeedMultiplier
Mdl_SetNpcSpeedMultiplier
Sets a multiplier for animation speed 1.0 = 100% speed (normal speed)
- npc- npc to be affected
- multiplier- speed of the animation
Mdl_ResetNpcSpeedMultiplier
Mdl_ResetNpcSpeedMultiplier
Resets the animation speed of an NPC
- npc- npc to be affected