MDL - model functions
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 animationani_name
- name of the animation in uppercasereturn
- animation index
Mdl_GetAnimationName
Mdl_GetAnimationName
Returns animation's name for specified NPC based on animation's index
npc
- NPC with the animationani_index
- animation indexreturn
- animation name
Mdl_AnimationIsExists
Mdl_AnimationIsExists
Checks whether animation exists
npc
- NPC with the animationani_index
- animation indexreturn
- animation name
Mdl_AnimationIsActive
Mdl_AnimationIsActive
Checks whether animation is active (whether it is currently played)
npc
- NPC with the animationani_index
- animation indexreturn
-TRUE
if the animation is playing,FALSE
if it is not playing
Mdl_SetAllAnimationsFPS
Mdl_SetAllAnimationsFPS
Set framerate for all animations
npc
- NPC with the animationfps
- 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 animationani_index
- animation indexfps
- framerate
Mdl_ResetAnimationFPS
Mdl_ResetAnimationFPS
Reset framerate to default for animation specified by animation index
npc
- NPC with the animationani_index
- animation index
Mdl_SetVisible
Mdl_SetVisible
Set NPCs visibility
npc
- specified NPCisVisible
-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 affectedmultiplier
- speed of the animation
Mdl_ResetNpcSpeedMultiplier
Mdl_ResetNpcSpeedMultiplier
Resets the animation speed of an NPC
npc
- npc to be affected