benilla-re systems structs docs

SetRawPosCommand

function · unassigned

Address
0x405000 · 533 bytes, up to 0x405214
Signature
uint32_t __fastcall (const char *name, const char *args)
Meaning
Sends a raw position x y [z] [facing] for the active player
Confidence
verified, proof one
Finding
console/commands#teleport-commands

Finding: Teleport commands in console: commands

port and setrawpos need the active player and return 1 without one. When the arguments begin with a digit or -, both read x y [z] [facing], split at tabs, line breaks, ", spaces and commas (0x82ef90, the set of worldport plus a comma): x and y are required (without them the handler returns 0), z defaults to 0 and facing, in degrees, to the player's own. The position must pass 0x404d10, else Coordinates out of range is printed. port then sends opcode 0xc6 and setrawpos 0xe1, each with the four floats, facing in radians. Other text makes port send opcode 0x9 with the whole argument string and makes setrawpos return 0.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 11

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