Help with photon being used to make a mulitplayer fps
Hi, I am currently making a multiplayer fps using photon. All of the weapons use raycasts that on contact with other players, calls a RPC function on the player who was hit to deal damage and create a hit marker. The problem is that the amount of damage done is multiplied by the number of players in the room. For example, if a hit was supposed to do 4 damage and there are 4 players in the room, the damaged player will take 16 damage as well as spawn 4 hit markers. I would like each hit to only do their respective damages and only spawn 1 hit marker.
Any help is appreciated, Thanks
FYI Currently the RpcTarget is set to All. Changing it to Others decreases the damage taken by one shot so for the example above, the player would take 12 damage.
Your answer
Follow this Question
Related Questions
Raycast over Photon 0 Answers
Variables not updated in PUN RPC function 2 Answers
Raycast Weapon not cause damage 1 Answer
Photon RPC 2 Answers