LEB: Difference between revisions

No edit summary
Line 150: Line 150:
First there is 4 bytes which define the usage of actor switches 0-3 respectively:
First there is 4 bytes which define the usage of actor switches 0-3 respectively:


* 0: uncertain purpose. Observable on dungeon torches (ObjDungeonFaceLamp)
*0: uncertain purpose. Observable on dungeon torches (ObjDungeonFaceLamp)
* 1: The actor switch is the index of a global flag.
*1: The actor switch is the index of a global flag.
* 2: Unknown. Usually the corresponding switch is 0x01. Possibly used to indicate the value to use for something else, e.g. setting a flag. Can be observed on most(?) loading zones, TagHolocaustChecker, etc.
*2: Defines a hardcoded value for the switch, usually 1. For example, while some treasure chests appear based on a global flag being set, some don't; these ones would just use this hardcoded 1 instead of a flag index.
* 3: So far not seen.
*3: So far not seen.
* 4: The switch is unused.
*4: The switch is unused.




39

edits