Hi, I have a little problem with broadcasting an event to all users in a zone.
I have one main room with an extension handling events. There are also game rooms using an other extension.
When a user enters a game room and leaves the main room, currZone.getAllUsersInZone() in the main extension does not include users in the game rooms (even though they are in the same zone). Is it possible to get a list of all users regardless of which extension is being used? Am I missing something?
getAllUsersInZone
Hello radz.
The zone class does not provide such a method like getAllUsersInZone(); - Or does it? Maybe I need to update
You will have to do it manually.
Read this topic for more info and code how to do it
http://forums.smartfoxserver.com/viewto ... etallusers
The zone class does not provide such a method like getAllUsersInZone(); - Or does it? Maybe I need to update
You will have to do it manually.
Read this topic for more info and code how to do it
http://forums.smartfoxserver.com/viewto ... etallusers
function onJoin(usr) {if (usr.getName() == "Lapo") trace ("All Hail Lapo");}
Yep, that's an alternative.
You're right the getAllUsersInZone actually filters users inside game rooms. At the moment, without the source under my eyes, I can't remember why it was implemented this way.
I will check it and see. It's probably needed a method that returns the full list of users without exceptions
You're right the getAllUsersInZone actually filters users inside game rooms. At the moment, without the source under my eyes, I can't remember why it was implemented this way.
I will check it and see. It's probably needed a method that returns the full list of users without exceptions