How to get duration (how long the surviver lived) ?

NeverUsedID

Well-Known Member
Hello, i want to get the playtime in minutes from a survivor to show it in globalchat. Anyone an idea in which variable it is stored or if i can get it from the database to show it in game ?

the column in database is "duration" under character_date.

Ive tried _minutes from server_playerdied, but thi is always zero.

thanks for help!
 
Some of the better debugmonnitor has this function thats a god start to look in one of them for reference.

Now i got an idea to maybe add a zone for players that has x or more amount of dayz survived.
 
:)

thx for hint.

Iam updateing our killmessages with some more info. I added the weapon of the victim and i want to add survived time too. Then we can determine freshspawnkillers ...

Edit: found (dayz_Survived) but it looks like its for the player playing. need a way to get this from any player.
 
I only have the player as object.
I dont know. Maybe there is a variable that i can get with getVariable to get the days alive or dration on the server.

Edit:
okay, i think i have found the value: its the array _survival[lastate,lastdrank,lifetimeOfCharInMinutes]
I added a New Variable to plyrObject. Will try It tomorrow. If its working i will Post the Script.
 
Back
Top