benilla-re systems structs docs

GetSpellPlacementModel

function · spell · orchestration

Address
0x6e6970 · 6 bytes, up to 0x6e6975
Signature
void * __cdecl (void)
Meaning
Returns the placement preview model 0xceca8c
Confidence
verified, proof one
Finding
spell/targeting#placement-model-and-rotation

Finding: Placement model and rotation in spell: targeting

A spell that places a game object keeps a preview model 0xceca8c, a rotatable flag 0xceca90 and a facing 0xcecad4. 0x6e6970 and 0x6e69d0 return the model and the flag. 0x6e6980 returns the facing: when not rotatable it reads the caster's facing, stores it and returns it at full precision; otherwise, or with no caster, the stored value. 0x6e69e0 adds π/2 as a float and, when the unrounded sum is at least 2π (as a float), stores the rounded sum less 2π. 0x492c20, on a world input whose +0x14 is 4 while targeting, rotates a rotatable placement and otherwise stops targeting.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

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