Skip to content

get correct roundtime #222

Answered by saul
RaphaelHippe asked this question in Questions
Discussion options

You must be logged in to vote

Hi Raphael

You'll have to get the current demo time (e.g. demo.currentTime) when you see the round_start game event. Store that time in a variable, then when you see a kill, you can subtract the current demo.currentTime from the time you stored at round start. That will tell you how many seconds into the round the kill was.

Thanks
Saul

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by saul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #48 on February 28, 2021 13:59.