[PUN]The more players the more damage?????

Hey guys so i have a really strange one here. So im creating a multiplayer FPS with photon and it seems like the more players that are connected the more damage a single bullet is doing. Any Ideas? The following code is on the Bullet that is spawned into the server using [PunRPC]

OnCollisionEnter will be called on Every client, thus applying damage multiple times.

1 Like

Ah thanks. So how can i solve this problem? Would i need to sync only when the health changes with players and not actually call the damage RPC with everyone?

In your ApplyDamage function, make sure you are only deducting the health on the local player by using photonview.ismine. Then from the same rpc you could send out another rpc which tells the other players to change your health accordingly

-Pablo Discobar