← Packet index

Packet 326

PlayerLocationPacket

Updates the client with the position of a player outside simulation distance, or hides a player.

Sent by PlayerLocationSender when a player position changes beyond a certain angle.

Packet datagramWire order
HeaderID 326varuint
0Target Actor IDActorUniqueID · variable
1LocationoneOf<CoordinatesLocation, HiddenLocation> · variable

Serialized fields

2 top-level fields
  1. 0Target Actor IDUnique ID of the player whose location is being updated or hidden.ActorUniqueID
    1. 0Actor Unique IDCompressionvarint64
  2. 1LocationEither updated coordinates for the tracked actor or a request to hide them.oneOf<CoordinatesLocation, HiddenLocation>
    0CoordinatesLocationCoordinatesLocation
    1. 0Packet TypeDiscriminator selecting the coordinates form of the location update.CompressionEnum-as-Valuevarint32
      1. 0PLAYER_LOCATION_COORDINATES
    2. 1PositionThe tracked actor's world position.Vec3
    1HiddenLocationHiddenLocation
    1. 0Packet TypeDiscriminator selecting the hide form of the location update (no position is sent).CompressionEnum-as-Valuevarint32
      1. 0PLAYER_LOCATION_HIDE

Changelog

Stable releases

Changes between stable protocol releases.

Released
Protocol
2225

Packet

1 entry

Changed 1

PlayerLocationPacket1 change · ID 326
  • Changed supporting type HiddenLocation: Changed Packet Type enum value PLAYER_LOCATION_HIDE from 0 to 1.