Animation
Plays or stops a named character animation defined in the scene editor. Supports looping and blocking until the animation finishes.
Side
SERVER
Syntax
animation <action:string> <animationName:string> [loop:boolean=false] [unique:boolean=false] [--block]Parameters
action(string, required): What to do. Accepted values:play,stop.animationName(string, required): Name of the animation as defined in the scene editor.loop(boolean, optional): Iftrue, the animation restarts automatically when it ends. Defaults tofalse.unique(boolean, optional): Iftrue, the character entity is killed when the animation ends. Defaults tofalse.--block(flag, optional): Pauses story progression until the animation finishes. Only applies toplay.
Examples
ink
// Play a walking animation without blocking
# animation play guard_patrolink
// Play a looping idle animation
# animation play npc_idle loop:trueink
// Play a death animation and wait for it to finish
# animation play boss_death --blockink
// Stop a running animation
# animation stop guard_patrol