Jump to content
BrutalBirdie

Player Stats Tracking

Recommended Posts

Hello there first :)

I found these entries in the script.log files

 StatsEventMeasuresData 2 | DistanceVehicle: 0; TimeVONIn: 0; TimeVONOut: 0; CntLootAny: 0; CntLootFood: 0; CntLootCloth: 0; CntLootFirearm: 0; CntLootAmmo: 0; CntKillInfected: 0; CntConsumedFood: 0; CntConsumedWater: 0; HealthRestored: 0; CntFiredAmmo : 0; CntCraftedItem: 0

But the Data never gets updated sadly, I would like to create some gamification for my users.

The more actions and stats I could track from each player, like walked meters, killed zombies ("CntKillInfected") etc, the better.

Do you know something about this?

Thanks for reading.

Share this post


Link to post
Share on other sites

i only saw playtime being updated for now

you can read that from PlayerBase:

float playtime = player.StatGet("playtime");

it's a float in seconds (so 900.0 is ~15 mins). i saw other stats, but they do not get updated as you say, and it is probably not worth it implementing this yourself. i use this variable to determine respawn loot on my server.

  • Beans 1

Share this post


Link to post
Share on other sites

Hmmm okay thanks for the response.
Implementing it myself could be worth it for me, since then I learn a bit about scripting in DayZSA (the new Engine).

I just need point where to start, like a good documentation about the game API/Code what I can use etc.

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

×