benilla-re systems structs docs

BaseHandlerCanUse

function · objectlayer · primitive

Address
0x5f3130 · 678 bytes, up to 0x5f33d5
Meaning
Decides whether the active player may use a game object now, giving the error and the use range
Confidence
verified, proof one
Finding
objectlayer/gameobjects#usable
Test
objectlayer::go_canuse_dist2_difftest

Finding: Usable in objectlayer: game objects

The handler's slot 6 decides whether the player may use the object now and the range to use it from, refusing with an error: a dead player; a locked-out client; for an object without a lock, a mounted player (but at a mailbox) or a shapeshift form without the item flag; combat when the object forbids it; an immune player at a chest or an object whose noDamageImmune column is set; a locked object whose lock the player cannot open, with the handler's error; a destroyed object; or distance past the range.

The derivation is in the doc.

Callers 2

Callees 10

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