Skip to content

total kills for a target #267

Answered by saul
pelasta asked this question in Questions
Discussion options

You must be logged in to vote

@Borlax2 full example here:

    const demoFile = new demo.DemoFile();

    demoFile.on("end", e => {
      if (e.error) {
        console.error("Error during parsing:", e.error);
      }

      const player = demoFile.players.find(x => x.steamId === "STEAM_1:0:56382797")!;
      console.log(`Player ${player.name} (${player.steamId}) scored ${player.kills}-${player.deaths}`);
    });

    // Start parsing the buffer now that we've added our event listeners
    demoFile.parse(buffer);

Replies: 12 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by saul
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

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

This discussion was converted from issue #159 on February 28, 2021 14:00.