I have a multiplayer game, and I need to determine who scored points and kill counts against other players. I'm mostly using projectile weapons in the game, so raytraces are rarely used, and the weapons shoot individual bullets towards other players.
Currently, the bullets carry the shooter's name, and so, on collision with opponents, the player script checks the name on the bullet. On a successful kill, the killed player's character script emits a signal that they have died, and passes the name of the previous player who shot them. This is complex, and I would like to simplify it.