benilla-re systems structs docs

DoorHandlerCanUse

function · objectlayer · orchestration

Address
0x5f4360 · 55 bytes, up to 0x5f4396
Meaning
Decides whether a door is usable, refusing a moving one with error 0xe3
Confidence
verified, proof one
Finding
objectlayer/gameobjecttypes#doors-and-buttons

Finding: Doors and buttons in objectlayer: game object types

A door is usable only while it is not moving: with autoClose set, a door that starts open must not be in state 1, one that starts closed not in state 3; otherwise ERR_USE_OBJECT_MOVING. A door's state change stores whether the state is 1 as its collision. A locked door shows ERR_DOOR_LOCKED, a locked button ERR_BUTTON_LOCKED.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.