Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

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

×