question

someone avatar image
someone asked

Why does the add friend function work on one side only? unreal engine (blueprint)

Hello,

I just finished the Friends system, where players could add and remove friends and view their profile public information. But I just noticed that the (AddFriend) and (RemoveFriend) functions work on one side only.

Thank you.

apisunrealFriends
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
someone avatar image
someone answered

I found a solution and created a accept/decline friend system

But if anyone wants it to add friend on both sides automatically use this code in cloud script: handlers.AddFriendFunction = function(args, context) { server.AddFriend({ PlayFabId: currentPlayerId, FriendPlayFabId: args.FriendPlayFabId });

and call it in unreal: 6530-capture.png


capture.png (143.8 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.