question

loopan avatar image
loopan asked

How can I get the number of players?,How can I get the number of players in client?

,
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

Can you please describe the actual gameplay you're trying to enable? While it's possible to query the players in a segment via the Server API (and so, by extension, in Cloud Script), that API call re-evaluates the full segment when it is called, so it should not be called as a result of a player action. If you can describe the actual experience you're trying to enable, we can advise you on the best approach.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.