I am new to Union/Orbiter and encountered a problem:
I am trying to set the RoomSettings for a Room created by an application, code looks as follows:
- Code: Select all
var roomSettings = new net.user1.orbiter.RoomSettings();
roomSettings.maxClients = 3;
console.log(roomSettings);
var aroom = orbiter.getRoomManager().createRoom('test',roomSettings);
console.log(aroom.getRoomSettings());
from what I understand that should set the maxCients-Setting to 3, but the console-logs give me:
a.user1.orbiter.RoomSettings {removeOnEmpty: null, maxClients: 3, password: null, serialize: function} (for the first console.log) and
a.user1.orbiter.RoomSettings {removeOnEmpty: null, maxClients: null, password: null, serialize: function} (for the second log)
I am honestly not sure what I am doing wrong here.