- Opcode: 0x040
- Short name: PMOVEA
- Long name: Move to Party Actor
Argument
none
Stack
Party member ID
Movement angle
PMOVEA
Description
Moves this entity towards the party member with the given ID (0, 1, or 2). Identical to MOVEA except the target actor is resolved through the savemap’s party-slot-to-field-entity table: the party member ID beneath the popped movement-angle value (move_angle_current, entity+538) is mapped to a field character entity, whose live position is copied into the destination each frame (move_pos_x/y/z, entity+436/+440/+444). Sets motion_state (entity+572) to 1 and pauses until arrival.
PC handler: SCRIPT_PMOVEA.
Function addresses
| Function | Address | Description |
|---|---|---|
SCRIPT_PMOVEA | 0x523880 | Field script opcode handler (verified IDA function) |