Problem with identifying players in network

Hi everyone,

I’m writing simple game (FPS) with many players over network. I have problem with specyfying which of them is mine - e.g. I want to send message via RPC to everyone that player XXX got hit. Is there any standard way to do it or should I implement it on my own?

Regards,
Michal

Try these steps:

  1. When xxx player gets a hit, send rpc from the xxx to the server using RPCMode.Server argument.

  2. Then server will send a RPC to all connected players in the network using RPCMode.OthersBuffered argument