The PartyId
property of the Connection
class represents the unique identifier of the party that the user is currently a part of. This property is useful for determining party membership and grouping users into parties based on their PartyId
.
The PartyId
property of the Connection
class represents the unique identifier of the party that the user is currently a part of. This property is useful for determining party membership and grouping users into parties based on their PartyId
.
To access the PartyId
property, you need to have an instance of the Connection
class. This property is read-only and returns a SteamId
object, which can be used to compare with other users' PartyId
to determine if they are in the same party.
// Example of accessing the PartyId property Connection connection = Sandbox.Connection.Local; SteamId partyId = connection.PartyId; // Check if two connections are in the same party Connection anotherConnection = Sandbox.Connection.Find(someGuid); if (connection.PartyId == anotherConnection.PartyId) { // They are in the same party }