Actor.Peer.PhotonPeer.ServerTimeInMilliSeconds?

oneiro
oneiro
edited May 2011 in Photon Server
The Photon documentation said that PhotonPeer has a ServerTimeInMilliSeconds member variable... but when i try to access it in MSVC#, code completion says it doesnt exist.

example:

Actor actor = Actors.GetActorByNumber(ActorNr);
int time = actor.Peer.PhotonPeer.ServerTimeInMilliSeconds;

what's the solution to get the server time on the server side?

Comments

  • Boris
    Boris ✭✭
    That's the client's photonpeer. On server side it's environment.tickcount I believe.