How do you set up team scoring?

I’m creating a team shooter type game, and upon a team having a player die, I want the other team to gain a point.
How would I accomplish this in blueprint.

  1. create a variable in player state called TeamId, which decides the team of the player
  2. create a method call PlayerKilled in your gamemode which takes a playerstate who was killed and the player who killed him (if any, could be natural damage or so). Let it update the score on the playerstate based on your game rules.
  3. keep a scoreboard that iterates over all playerstates (using gamestate) and counts the score for each player in a team, which makes up the total team score.