Jump to content
Sign in to follow this  
dupa1

Is there a way to access scores of disconnected players?

Recommended Posts

I want to save player scores through server restart. I have an idea how to save the scores, but I don't have an idea how to actually access them. I know about the getPlayerScores command, but it receives a unit as argument, so it would only work for connected players. So, basically, what I'm looking for is a way to access the data from the score table by script. I did have an idea of tracking the scores manually, but before doing that I decided to ask if there is a more simple way to do it.

Share this post


Link to post
Share on other sites

Thanks, I didn't know about this one, I only knew about playerDisconnected EH, which has no unit argument. This will definitely make my life easier.

Share this post


Link to post
Share on other sites

I tried the HandleDisconnect EH. Querying the player scores from the _unit argument returns an empty array. Guess it's plan B.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×