question

Alexander Bettios avatar image
Alexander Bettios asked

How do I get The team ID of a player in Unreal Blueprints after calling GetMatch?

Once I have the GetMatchResult I have an array of JSON Objects, but how do I find which item in that array is the local player? I want to join the server with an argument listing the team so my framework knows what side to put them on, what color to make their UI, etc. I need this at GetMatch so it can be an argument in the URL.

unrealCustom Game ServersmultiplayerMatchmaking
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

·
Rick Chen avatar image
Rick Chen answered

The team ID is in the “Members” property of the GetMatchResult, the Members property is a list of Users that are matched together, along with their team assignments, please refer to GetMatch API.

To get the team id in Unreal Blueprints, here is an example screenshot:


bptest2.png (187.5 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.