• Opcode: 0x053
  • Short name: DIRP
  • Long name: Direct to Party Member

Argument

none

Stack

Target X

Target Y

Target Z

DIRP

Description

Pops three values (a target X, Y, Z position, each shifted left by 12 into fixed-point) and rotates this entity to face that world point. This is a blocking turn: it stores the look-at target and yields (returns 1) while the rotation plays out, finalising the facing angle when done. (Despite the “Direct to Party member” long name, the handler consumes three coordinate values, not a party-member index; a party member is faced by pushing that member’s coordinates. To face a party member by slot instantly, use PDIRA.)

PC handler: SCRIPT_DIRP.

Function addresses

Function Address Description
SCRIPT_DIRP 0x526E90 Field script opcode handler (verified IDA function)