Sign In Register

How can we help you today?

Start a new topic
Answered

Getting Match Minimum Players?

Is there anyway I can access the match minimum players configured value to use on a real time script? 


So if my RTScript intervaled function detects some players are taking too long (above certain time limit) to send some required data, I can decide if continue without them or abort.


Best Answer
Hey Guiliano,

You might need to send a request to a custom logevent in RT scripts.
There is a brief guide on how to achieve this here -> https://docs2.gamesparks.com/tutorials/real-time-services/calling-log-event-requests-in-rt-scripts.html

 


Hi Giuliano,


Apologies for delayed response. You can get this value using SparkMatchConfig in Cloud Code.The getMinPlayers call is what you need here I believe. Try that and let me know if you have any further questions.


Regards,

Liam

How do I get access to SparkMatchConfig from a realtime script since I dont have access to the Spark api? I think Im missing something..


Answer
Hey Guiliano,

You might need to send a request to a custom logevent in RT scripts.
There is a brief guide on how to achieve this here -> https://docs2.gamesparks.com/tutorials/real-time-services/calling-log-event-requests-in-rt-scripts.html

 

Login to post a comment