How to Get server time when server receive RPC

Options
I current working on photon cloud server and I want to do a game with command base with fix FPS.
How can I get the time when server receive RPC For Client to execute the command at same game loop time?

Comments

  • Hi @SimonMui,

    I don't know if you are looking for this, but when receiving a RPC on the client you can add a PhotonMessageInfo to the RPC function as shown in the third code snippet from the RPCs and RaiseEvent documentation page. This PhotonMessageInfo contains a timestamp telling you the moment the message has been sent.

    I think you can't get the time the server has received the RPC, the only thing you can do is trying to estimate the moment by using the received timestamp and the clients' ping times. This however won't be very accurate.