Open codexGW opened 9 years ago
Arma 3 does not give absolute time-stamps, so this is not possible to do, unless an external source is used to get the time. Best I can do is make it so that the in-game scoreboard only shows the player's kills since they joined the server ... but still keep their total kills in-memory so that the data is not lost when saving.
I was thinking make a separate database document like A3W_scoreboard that keeps the players score and have it wipe at a set time like vehicles or objects do.
That would not work. There would literally be tens of thousands of sub-documents in there, which would take forever event to iterate through in SQF, and find a the score for a player.
Not every player just the ones in the set time are saved in the document. In say 24 hours that would be maybe like 100 - 200 players.
That may work, with similar to how object life-time is tracked, the mission could track the scoreboard document lifetime, and throw it away when it goes over a certain time.
I would be cool to have a option to reset the score board at a set time. Say once every 24 hours. I want to keep the players info for a stats system and not wipe it out. I don't think the in game score board was ever meant to be a stats system.