benilla-re systems structs docs

PortCommand

function · unassigned

Address
0x404a60 · 685 bytes, up to 0x404d0c
Signature
uint32_t __fastcall (const char *name, const char *args)
Meaning
Sends a cheat teleport to x y [z] [facing], or a teleport to the unit an argument names
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 12

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