跳到主要内容

Player Animation Cinematic

Play a player animation during a cinematic

字段

字段类型默认值描述
modelIdVar<String>steveThe limb model ID from BetterModel/players folder (e.g., 'steve', 'alex')
positionVar<Position>ORIGINThe fixed world position where the animation will play. Captured once in the editor.
segmentsList<PlayerAnimationSegment>empty—
PlayerAnimationSegment(7)
字段类型默认值描述
startFrameInt0—
endFrameInt0—
animationVar<String>—The animation name to play
playModePlayModePLAY_ONCEAnimation play mode: PLAY_ONCE, HOLD_ON_LAST, or LOOP可选值:PLAY_ONCEHOLD_ON_LASTLOOP
lerpInInt6The duration of the lerp in effect (ticks)
lerpOutInt6The duration of the lerp out effect (ticks)
speedFloat1.0The speed multiplier of the animation
TypeWriter 通用字段(criteria)
字段类型默认值描述
criteriaList<Criteria>empty—

How to use it​

Same segments as the animation cinematic, but the model is placed at the fixed position you captured, so the camera can move freely around it. modelId is a limb model from BetterModel's players folder (for example steve). It is shown only to the player watching.