Join a Party
Last updated on
When someone joins the party, the player inside the party will get some notification that there are some new party members inside the party.
- Unreal Engine
- Unity
FRegistry::Lobby.Connect();
FRegistry::Lobby.SetPartyJoinNotifDelegate(AccelByte::Api::Lobby::FPartyJoinNotif::CreateLambda([](const FAccelByteModelsPartyJoinNotice& Result)
{
// Do something if PartyJoinNotifDelegate has been successful
}));
AccelBytePlugin.GetLobby().Connect();
AccelBytePlugin.GetLobby().JoinedParty += result =>
{
if (result.IsError)
{
// Do something if JoinedParty has an error
Debug.Log($"Error JoinedParty, Error Code: {result.Error.Code} Error Message: {result.Error.Message}");
}
else
{
// Do something if JoinedParty has been successful
}
};