ChangeRoom( new_room_name )
Description
This function removes your client from the room it is in to the new room in the argument. This is exactly the same as joining a room so join room / change room can be used interchangeably.
⚠️ The new room name has to be a string. Please understand that and do not pass any other values. That could severely crash your server and will have to restart. Room names are case sensitive and overall just really sensitive. Also do not use emojis and other such characters. We 💕 emojis but they complicate code a lot.
📌 The new room name also can’t be a numeric string like “3” , “234” “1010”. This is because all private rooms are going to be numbers right? So we don’t want to join anyone’s private room. There is a workaround however. Instead of room id “67” you can put “ 67”. That extra space allows you to bypass this rule.
Syntax
new_room_name
The name of the room you intend the client to join. This must be a String.
Returns
What happens after I join this new room?
All instances of other players from your previous room, if there were any are destroyed, and now ones from this room are created.
Now your shared properties are only shared with members of this room.
How do I know I’ve joined the new room successfully?
After a successful room change, the callback function callback_ChangeRoom() is called.
Last updated