Is it possible to have a different PlayerTTL per player?

There's a use case that seems applicable to a lot of asynchronous games and I'm not immediately seeing how to accomplish it within Photon's async api:
- in a turn based game, the current player typically has X amount of time to do their turn before giving up or being kicked.
- currently, setting PlayerTTL kind of works, but the downside is everyone times out. For example, a 4 player game with a ttl of 2 days, by the time it hits player 2 or 3, they've timed out when it's not even their turn (assuming max time to take each turn).

I was wondering if there's a way to set the TTL of an individual actor, or some work around?


  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @onealexleft,

    It is not possible to have player timeout values per actor.

    In any case, I think the PlayerTTL is not enough to implement player turn timeout as the counter starts only when the actor becomes inactive.

    You need to implement turn timeout manually.
  • onealexleft
    Ah ok, thanks for the info!