Multiplayer Leaderboard

Godot Version

4.2.1

Question

i am making a multiplayer shooter and i am trying to count the amount of kills a player has but i can’t figure out how to tell if the player killed someone to code in the kill count

There are probably many ways, but I opted to create an event system that on every time a player is destroyed by a weapon some data is collected, by the dying player, about the owner of the weapon and what type of weapon and the. register a new event on who killed them and with what weapon. This event is then passed along to a scoring system to tally a score card for each player.

I also register damage given from the weapon. If the weapon hits another player it creates a new damage event. I use it as an extra stat to show the player.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.