Pular para o conteúdo principal

Play Player Animation

Play a player animation from BetterModel players folder

Campos

CampoTipoPadrãoDescrição
modelIdVar<String>steveThe limb model ID from BetterModel/players folder (e.g., 'steve', 'alex')
animationVar<String>—The animation name to play
playModePlayModePLAY_ONCEAnimation play mode: PLAY_ONCE, HOLD_ON_LAST, or LOOPValores:PLAY_ONCEHOLD_ON_LASTLOOP
settingsPlayerAnimationSettings—Animation playback settings
PlayerAnimationSettings (3)
CampoTipoPadrãoDescrição
lerpInInt6The duration of the lerp in effect (ticks)
lerpOutInt6The duration of the lerp out effect (ticks)
speedFloat1.0The speed multiplier of the animation
Campos comuns do TypeWriter (criteria, modifiers, triggers)
CampoTipoPadrãoDescrição
criteriaList<Criteria>empty—
modifiersList<Modifier>empty—
triggersList<Ref<TriggerableEntry>>empty—

How to use it​

This plays an animation on the player's own limb model. modelId is a model from BetterModel's players folder and animation its animation name. playMode is PLAY_ONCE, HOLD_ON_LAST or LOOP. In settings, lerpIn and lerpOut are in ticks (6 by default) and speed is a multiplier. To stop a looping animation, replace it with another one.