Page 1 of 1

Quick question: _server Objects

Posted: 06 Oct 2009, 18:42
by mistermind
Is there a way to get the room list?
(same as how we get them from onRoomListUpdate client side, but only server side - not _server.sendRoomList())

I'm trying to use _server.joinRoom to join a fixed room (lobby) but I need to get the id first. All server side.
Basically, send a XT message as "joinAllPublicRooms" rather then join one by one client side.

Posted: 06 Oct 2009, 18:52
by mistermind
Nvm I've figured it out :D
var zone = _server.getCurrentZone()
var lobbyRoom = zone.getRoomByName("Lobby");

me so dumb :roll: