Sign In Register

How can we help you today?

Start a new topic
Answered

End challenge when player disconnect

I have created a game with 4 players, is there any way to end the challenge as soon as one of the players leave the challenge

Best Answer

Hi Bill,


The challenges the player is currently in isn't stored anywhere on the platform. The recommendation here would be to store the challengeIds for a player in their privateData (see here) in an array. From here you can reference it and update it accordingly as a player enters and leaves a challenge.


Regards,

Liam


bump, any help ? i want to do this https://support.gamesparks.net/support/discussions/topics/1000083276 i have the same question as the last comment (How do you find the challenge they were in using their player id?)

 

Answer

Hi Bill,


The challenges the player is currently in isn't stored anywhere on the platform. The recommendation here would be to store the challengeIds for a player in their privateData (see here) in an array. From here you can reference it and update it accordingly as a player enters and leaves a challenge.


Regards,

Liam

Login to post a comment