- Opcode: 0x02B
- Short name: SETMODEL
- Long name: Set model
Argument
Model ID to load.
Stack
none
Description
Set this entity’s display model. The inline 16-bit argument is written to model_id (entity+536); the model itself is loaded/bound later by the field setup. Returns 2 (done + continue).
PC handler: SCRIPT_SETMODEL.
Function addresses
| Function | Address | Description |
|---|---|---|
SCRIPT_SETMODEL | 0x51D8F0 | Field script opcode handler (verified IDA function) |