Scriptable Layers (Metroid Prime 2): Difference between revisions

>Aruki
No edit summary
>Aruki
 
Line 215: Line 215:
Generated objects are stored on a separate layer, denoted with <code>SCGN</code>. The SCGN layer isn't a real layer; it doesn't store a self-index and instances on the layer still contain the index of their original SCLY script layer in their instance ID. These are the stipulations that cause an instance to be written to SCGN:
Generated objects are stored on a separate layer, denoted with <code>SCGN</code>. The SCGN layer isn't a real layer; it doesn't store a self-index and instances on the layer still contain the index of their original SCLY script layer in their instance ID. These are the stipulations that cause an instance to be written to SCGN:


* Any instance that receives a Generate/Activate message (MP2) or a Generate/Attach message (MP3, DKCR) is written to SCGN instead of SCLY.
* Any instance that receives a Generate/Activate message (MP2) or a Generate/Attach, Generate0/Attach, or Generate1/Attach message (MP3, DKCR) is written to SCGN instead of SCLY.
* In DKCR, all GenericCreature instances are written to both SCLY and SCGN. (The generated one is spawned if you scroll the creature offscreen and come back.)
* In DKCR, all GenericCreature instances are written to both SCLY and SCGN. (The generated one is spawned if you scroll the creature offscreen and come back.)


Anonymous user