benilla-re systems structs docs

IsInsideAreaTrigger

function · objectlayer · primitive

Address
0x5e22d0 · 441 bytes, up to 0x5e2488
Signature
uint32_t __fastcall (void *row, float *position)
Meaning
Tests a point inside an AreaTrigger row's sphere, or strictly inside its rotated box when its radius is 0
Confidence
verified, proof one
Finding
objectlayer/players#area-triggers
Test
objectlayer::area_trigger_kind_5e22d0_difftest, objectlayer::area_trigger_sphere_5e22d0_difftest

Finding: Area triggers in objectlayer: players

A 100 ms timer checks the active player's position against the current map's AreaTrigger rows. Entering a trigger sends a movement heartbeat (0xee) and CMSG_AREATRIGGER (0xb4) with the row id; staying inside sends nothing. A row with radius 0 is a box: half its length, width and height around its centre, rotated by its orientation about z, strictly inside on each axis. Any other row is a sphere, inside unless r² < d².

The derivation is in the doc.

Callers 1

Callees 4

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