How would I get the name of the player that killed some1 and the player that got killed?

Options
So I have made my own FPS multiplayer game and I have problem figuring out how to make a kill counter/death counter. The player kills other players by sending raycasts and instantiating a bullet as a child on the object that the raycast hit. It then checks if the parent has the component PhotonView and if it does then it takes a set number of damage. How would I get information about who killed who?

pls help if you know anything about the topic :)

Comments