- Im making an extension so that when data is sent to the server and the cmd is "mv" it will send that data on to everyone else in that room. The extension is running in the zone and there is 1 room in the zone (soon to be more).
- My problem is that I can not work out exactly how to find all the users in the room.
Here is my code:
Code: Select all
function handleRequest(cmd, params, user, fromRoom, proto) {
if (cmd == "mv") {
var m = [];
m[0] = cmd;
m[1] = params[0];
m[2] = params[1];
m[3] = params[2];
_server.sendResponse(m, <from room or somthing?>, user, <all other users in room>, "str");
}
}- I think everything else in my code is working properly all I need is to find the room that the response is coming from, all the users in that room, so I can send the information to all the users in the room.
- Also what is raw protocol and why is it less laggy (if any) than sendObject, are there alternatives?
- What is a good time delay for each command for an FPS? 20ms?
Thanks for your help,
Dan