How to count how many players are in a photon room

0 favourites
  • 3 posts
From the Asset Store
Players follower. use it for anything which follows the player
  • Friends, I've been struggling with this problem for a whole week and I can not find an answer.

    I think there is a bug in the plugin itself

    I need to count how many players are in the room without entering it.

    There is such a function in a photon and it can be seen only by casting to a string

    "Photon.RoomPlayerCount(Name)" it constantly returns "0" to the string.

    If there are 2+ players in the room or there are no players at all, it still returns "0" I can not understand what the problem is.

    I tried in a new project but no, it doesn’t work, it constantly gives 0

  • I haven't used it before so I'm not sure - but have you tried putting both quotes and no quotes around the name?

    Photon.RoomPlayerCount(Name)

    Photon.RoomPlayerCount("Name")

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I haven't used it before so I'm not sure - but have you tried putting both quotes and no quotes around the name?

    Photon.RoomPlayerCount(Name)

    Photon.RoomPlayerCount("Name")

    Then the line swears that there is no expression for the name of the object or the variable "Name"

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)