Skip to content

Zenkai Opcode SetEntityAnimation

Johnathon edited this page Sep 20, 2026 · 2 revisions

SetEntityAnimation

Sets an entity's current animation.

Syntax

SetEntityAnimation(charIdx, animId)

Parameters

charIdx
Integer
Entity to animate.

animId
Integer
Animation id.

Remarks

Sets an entity's current animation and holds that entity's command queue until the animation has finished. SetEntityAnimationNoWait starts it without waiting.

Examples

Minimal illustrative encoding (synthetic, not from a real ROM script):

0x00, N           // PushByte(charIdx)
0x00, N           // PushByte(animId)
0x02, 0x39        // Step -> BytecodeVM_SetEntityAnimation

See Also

Applies To

Game Notes
Legacy of Goku 2 Supported

Clone this wiki locally