Hey,
What would be the best way to execute a cloud script for every match that is created using matchmaking? I don't need to execute the script for every player matched, but just once for every match found.
More context: In my game each player is assigned to a 'world' as soon as they register, together with a fixed number of other players. I use matchmaking to do that. However, I now need a way to 'remember' which player is in which world and to manipulate that information flexibly (e.g. don't think Matchmaking allows for a new player to be added to an existing match). I was thinking to use a Cloud Script to move info from the match itself to a Group of players and its Entity Object. But how can I run that Cloud Script for each match that has been found?
Answer by Sarah Zhang · Sep 07, 2020 at 09:58 AM
Currently, PlayFab doesn’t support using such “Match_Found” events to trigger a CloudScript function. You can try to add a feature request for this feature that adding supports of “Match_Found” events in the PlayFab Webhooks and PlayFab Rule. Temporarily, this action needs be triggered by players.
[SERVER or Cloud Script] Retrieving Server CustomData or Tags without Client.GetCurrentGames 1 Answer
GetQueueStatistics in CloudScripts seems limited not per user 1 Answer
Issue communicating with REST server running on Multiplayer Server 1 Answer
Can Cloudscript call the server matchmaking functions? 1 Answer
Can I have access to GetQueueStatistics in CloudScript? 2 Answers