Type Function Return value none Revision Release 2024.3703 Keywords Google Play Games Services, game network, gpgs, multiplayer, turn-based, send See also gpgs.multiplayer.turnbased gpgs.multiplayer gpgs.*
Indicates that a participant has finished his turn and optionally sends match results to specified participants. For this call, you must indicate who will take the next turn.
gpgs.multiplayer.turnbased.send( params )
Table. Contains parameters for the call — see the next section for details.
The params
table contains parameters for the call.
String. The multiplayer match ID.
String. Participant who will have the next turn.
Boolean. Whether to wait for additional
String. The match data to send to other participants. This has a size limit as noted in gpgs.multiplayer.getLimits().
Array. Populate with result table elements as defined in the next section. Note that the results reported here should be final — if results reported later conflict with these values, the returned value will indicate a conflicted result. This is most useful for cases where a participant knows their results early, for example a single elimination game where participants are eliminated but the game continues.
The results
array can be populated with child tables, each containing individual participant details:
String. Participant to send the result to.
String. The result of the match. Can be either "disagreed"
, "disconnect"
, "loss"
, "tie"
, "win"
, or "none"
. Default is "none"
.