• Opcode: 0x0CA
  • Short name: SEPOSTRANS
  • Long name: Sound Effect Pan Transition

Argument

none

Stack

Sound channel

Frame count

Final pan (0-255)

SEPOSTRANS

Description

Transitions the pan of the sound in sound channel over frame count toward final pan. 0=left, 255=right. Pops three values (channel mask, frame count, final pan) and calls Sfx_SetPanTrans_Mask. Note the handler passes frame count as the transition duration.

PC handler: SCRIPT_SEPOSTRANS.

Function addresses

Function Address Description
SCRIPT_SEPOSTRANS 0x520150 Field script opcode handler (verified IDA function)