- Opcode: 0x01E
- Short name: SET3
- Long name: Set 3-coordinate position
Argument
Walkmesh triangle ID.
Stack
XCoord
YCoord
ZCoord
SET3
Description
Place this entity’s model at XCoord, YCoord, ZCoord standing on the given walkmesh triangle. All three stack values are popped (top = ZCoord, then YCoord, then XCoord) and each shifted left by 12 into fixed-point before being written to the entity position fields; the Argument triangle ID is stored and the model is re-seated. Unlike SET, the Z coordinate is taken from the stack rather than interpolated from the walkmesh. Returns 2.
PC handler: SCRIPT_SET3.
Function addresses
| Function | Address | Description |
|---|---|---|
SCRIPT_SET3 | 0x51D780 | Field script opcode handler (verified IDA function) |