Dock (Metroid Prime)

From Retro Modding Wiki
Jump to: navigation, search

A Dock is a script object that handles inter-area transitions. It is responsible for loading adjacent areas and for transitioning Samus from one to the other when she passes through it. Docks are often accompanied by doors, but this is not required.

Parameters

Offset Data Type Length Name Description
0x0 string N Instance Name
N+0x0 bool 1 Active
N+0x1 CVector3f 12 Position
N+0xD CVector3f 12 Scale
N+0x19 long 4 Dock ID ID number for this dock instance in this area.
N+0x1D long 4 Area ID MLVL index for this area
N+0x21 bool 1 Load Connected On Initialization Loads the connected area upon area initialization

States

Messages

ID Name Effect
0x5 Decrement Stop rendering attached area
0x7 Increment Start rendering attached area
0xC SetToMax Load attached area
0xD SetToZero Unload attached area