- Opcode: 0x028
- Short name: LADDERDOWN2
- Long name: Climb ladder along 3-point path (down)
Stack
X1?
Y1?
Z1?
X2?
Y2?
Z2?
X3?
Y3?
Z3?
LADDERDOWN2
Description
Extended ladder-climb (“down” direction) that follows a three-waypoint path. Nine coordinates are popped and stored as fixed-point world coordinates (shifted left by 12): the first point into move_pos_x/y/z (entity+436/+440/+444), the second into move_target_x/y/z (entity+448/+452/+456), and the third into a further coordinate triple (entity+424/+428/+432). The inline 16-bit argument is the destination walkmesh triangle ID (entity+508). The handler sets motion_state (entity+572) to 4 (three-point ladder mode) and seeds the direction field move_angle_current (entity+538) with 0 (down). It pauses the script until the motion completes.
Identical to LADDERUP2 except for the direction seed (1 for up, 0 for down).
PC handler: SCRIPT_LADDERDOWN2.
Function addresses
| Function | Address | Description |
|---|---|---|
SCRIPT_LADDERDOWN2 | 0x525CA0 | Field script opcode handler (verified IDA function) |