• Opcode: 0x043
  • Short name: PJUMPA
  • Long name: Jump Actor to Party Member

Argument

none

Stack

Party Member ID

Jump duration (frames)

PJUMPA

Description

Jumps this entity to a party member’s location. Two values are popped: the top is the jump duration in frames (move_duration_frames, entity+472); beneath it is the party member ID, which is mapped through the savemap party-slot table to a field character entity. That entity’s position (pos_x/y/z, entity+400/+404/+408) is copied into this entity’s jump destination (move_pos_x/y/z, entity+436/+440/+444), and the target’s current walkmesh triangle (current_triangle, entity+506) into the landing-triangle field (entity+508). Sets motion_state (entity+572) to 2 (jump) and pauses the script until the jump lands (motion_substate == 2), then returns 3.

PC handler: SCRIPT_PJUMPA.

Function addresses

Function Address Description
SCRIPT_PJUMPA 0x525800 Field script opcode handler (verified IDA function)