benilla-re systems structs docs

CGUnit_C::PostInit

function · objectlayer · primitive

Address
0x5fb880 · 721 bytes, up to 0x5fbb50
Meaning
Sets a new unit up: display, model, sounds, mover size, mount or death, first animation, markers, name
Confidence
verified, proof one
Finding
objectlayer/units#lifecycle
Test
objectlayer::uh_ground_snap_gate_difftest

Finding: Lifecycle in objectlayer: units

0x5fb880(time, a, spawned) runs after creation: it resolves the display, gives the body its callbacks, textures and sounds, sizes the mover, finds the race's sound race, sets up mount, death time and loot sparkle, picks the first animation, and refreshes markers, tokens, name, breath, auras and channel. Slot 1 tears a unit's client state down when it leaves; slot 2 rebuilds its name and facings when it returns; slot 3 refreshes what an update may have changed.

The derivation is in the doc.

Callers 2

Callees 28

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