CREATE YOUR WORLD
Multiplay

Temporarily Restricting Room Access in Multiplay

4min

You can use the lock, unlock function to restrict or allow room access at your desired timing.

📘 Please refer to the following guide. [ZEPETO.Multiplay(Server) API]

Lock

The lock function is a function restricts room access.

TypeScript




Unlock

The unlock function is a function that allows room access. But, if the number of people who are currently connected is the same as the maximum number of people allowed in the room, the room cannot be unlocked.

TypeScript




Example

The following is an example code that uses the lock and unlock functions.

TypeScript


👍 Difference between lock and private functions

  • The locked multiplayer room is not visible in the ZEPETO room list and cannot be entered by invitation.
  • Private multiplayer rooms are not shown in the list of ZEPETO rooms, but invitations are acceptable.