Difference between revisions of "Object list"

From SM64Decomp Wiki
Jump to navigation Jump to search
(Created page with "Every object is categorized into an object list, which controls the order they are processed and which objects they can collide with. In behavior scripts, the <code>BEGIN</cod...")
 
 
Line 8: Line 8:
 
!Description
 
!Description
 
|-
 
|-
|Player
+
!Player
 
|OBJ_LIST_PLAYER
 
|OBJ_LIST_PLAYER
 
|Mario
 
|Mario
 
|-
 
|-
|Destructive
+
!Destructive
 
|OBJ_LIST_DESTRUCTIVE
 
|OBJ_LIST_DESTRUCTIVE
 
|Things that can be used to destroy other objects, like bob-ombs and corkboxes.
 
|Things that can be used to destroy other objects, like bob-ombs and corkboxes.
 
|-
 
|-
|General actors
+
!General actors
 
|OBJ_LIST_GENACTOR
 
|OBJ_LIST_GENACTOR
 
|Most normal "enemies" or actors are on this list, such as Mips, Bullet Bill or Bully.
 
|Most normal "enemies" or actors are on this list, such as Mips, Bullet Bill or Bully.
 
|-
 
|-
|Level
+
!Level
 
|OBJ_LIST_LEVEL
 
|OBJ_LIST_LEVEL
 
|General level objects such as heart or star.
 
|General level objects such as heart or star.
 
|-
 
|-
|Default
+
!Default
 
|OBJ_LIST_DEFAULT
 
|OBJ_LIST_DEFAULT
 
|Objects that didn't start with a 00 command are put here, so this is treated as a default.
 
|Objects that didn't start with a 00 command are put here, so this is treated as a default.
 
|-
 
|-
|Surface
+
!Surface
 
|OBJ_LIST_SURFACE
 
|OBJ_LIST_SURFACE
 
|Objects that specifically have surface collision and not object collision, such as thwomp and whomp.
 
|Objects that specifically have surface collision and not object collision, such as thwomp and whomp.
 
|-
 
|-
|Polelike
+
!Polelike
 
|OBJ_LIST_POLELIKE
 
|OBJ_LIST_POLELIKE
 
|Objects that attract or otherwise "cling" Mario similar to a pole action, such as hoot, whirlpool, trees or poles.
 
|Objects that attract or otherwise "cling" Mario similar to a pole action, such as hoot, whirlpool, trees or poles.
 
|-
 
|-
|Spawner
+
!Spawner
 
|OBJ_LIST_SPAWNER
 
|OBJ_LIST_SPAWNER
 
|Spawners
 
|Spawners
 
|-
 
|-
|Unimportant
+
!Unimportant
 
|OBJ_LIST_UNIMPORTANT
 
|OBJ_LIST_UNIMPORTANT
 
|Objects that will not load if there are not enough object slots: they will also be manuall unloaded to make room for slots if the list gets exhaustet.
 
|Objects that will not load if there are not enough object slots: they will also be manuall unloaded to make room for slots if the list gets exhaustet.
 
|}
 
|}
 +
 +
== See also ==
 +
 +
* [[Object]]
 +
 
[[Category:Level]]
 
[[Category:Level]]

Latest revision as of 09:12, 9 November 2020

Every object is categorized into an object list, which controls the order they are processed and which objects they can collide with. In behavior scripts, the BEGIN command is used to specify the list for this object, such as BEGIN(OBJ_LIST_DEFAULT).

Available lists

The following lists are available:

List ID Description
Player OBJ_LIST_PLAYER Mario
Destructive OBJ_LIST_DESTRUCTIVE Things that can be used to destroy other objects, like bob-ombs and corkboxes.
General actors OBJ_LIST_GENACTOR Most normal "enemies" or actors are on this list, such as Mips, Bullet Bill or Bully.
Level OBJ_LIST_LEVEL General level objects such as heart or star.
Default OBJ_LIST_DEFAULT Objects that didn't start with a 00 command are put here, so this is treated as a default.
Surface OBJ_LIST_SURFACE Objects that specifically have surface collision and not object collision, such as thwomp and whomp.
Polelike OBJ_LIST_POLELIKE Objects that attract or otherwise "cling" Mario similar to a pole action, such as hoot, whirlpool, trees or poles.
Spawner OBJ_LIST_SPAWNER Spawners
Unimportant OBJ_LIST_UNIMPORTANT Objects that will not load if there are not enough object slots: they will also be manuall unloaded to make room for slots if the list gets exhaustet.

See also