benilla-re systems structs docs

Script::SetCharacterCreateFacing

function · glue · primitive

Address
0x471930 · 69 bytes, up to 0x471974
Signature
int __fastcall (lua_State *L)
Meaning
Stores a facing in degrees as float radians and returns its last argument
Confidence
verified, proof one
Name from
the community database (idb)
Finding
glue/create#facing-in-degrees
Test
glue::lua_deg2rad_difftest

Finding: Facing in degrees in glue: character create

GetCharacterCreateFacing returns the stored float times 57.29578 as a double. SetCharacterCreateFacing(degrees) multiplies by 0.017453292, rounds to a float, stores it with no wrap, clamp or NaN test, passes it, when the character has a model, to the model's transform setter with the origin, axis (0, 0, 1) and scale (1, 1, 1), and returns its last argument.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

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