• Opcode: 0x036
  • Short name: RCANIMELOOP
  • Long name: Resume script, Play controlled looping animation

Argument

Model Animation ID

Stack

Last frame of animation

First frame of animation

RCANIMELOOP

Description

Loops a frame range of an animation. The controlled-range variant of RANIMELOOP: pops the first frame (top of stack) and last frame, starts the range in looping mode (execution_flags bits set to 0x20, entity+352) and returns 3 immediately, so the range keeps cycling while the script continues.

PC handler: SCRIPT_RCANIMELOOP.

Function addresses

Function Address Description
SCRIPT_RCANIMELOOP 0x526AB0 Field script opcode handler (verified IDA function)