Overview - Search for players - (Unreal Engine module)
Last updated on October 24, 2024
Introduction
Finding and making friends is an important part of any online game. In this module, you will learn how to implement searching for potential friends and inviting them to become a friend.
Prerequisites
To complete this module, you will need:
To have completed the following module:
The Byte Wars
tutorialmodules
branch checked out in your local Byte Wars Unreal project repository.To have force enabled this module. You can do this by adding the following code to the
Config/DefaultEngine.ini
file:[AccelByteTutorialModules]
+ForcedEnabledModules=TutorialModule:FRIENDSESSENTIALS
...
Learning objectives
At the end of this module, you will know how to implement:
- Search for player by display name
- Invite player to become friend
- Invite a player to become friend using Friend Code
Preview
At the end of this module, your project will look like the images below.
Searching for a player by display name and sending them a friend invite:
LogFriendsEssentials: Warning: Success to send a friend request.
Searching for player via friend code:
LogFriendsEssentials: Warning: Success to get self friend code: <code>
LogFriendsEssentials: Warning: Success to send a friend request by friend code.