• Opcode: 0x03C
  • Short name: WAIT
  • Long name: Wait

Argument

none

Stack

Frames to wait

WAIT

Description

Pauses this script for some number of frames. The frame count is left on top of the stack; each frame the handler decrements that stack slot in place and returns 1 (wait, retry same instruction) while it is non-zero. When it reaches 0 the value is popped and the handler returns 3 (done + yield), resuming the script.

PC handler: SCRIPT_WAIT.

Function addresses

Function Address Description
SCRIPT_WAIT 0x51D870 Field script opcode handler (verified IDA function)