Page 1 of 1

Setting SetUserVariables before joining a room

Posted: 06 May 2009, 15:17
by matrix211v1
Hello All!

I am trying to set the SetUserVariables before the user joins the room. I am doing this because I need to define what type of player and color the user has selected remotely.

For example: I logged into a room as a "Man" and color "Blue". I have set the SetUserVariables for this: playerType: Man, playerColor: Blue.

This all works great.
Now when I person logs in after me, the OnUserEnterRoom is fired. I need to get the player info (playerType and playerColor) from their SetUserVariables BUT what is happening is that it is not set until AFTER the OnUserEnterRoom is fired.

Is there a way to SetUserVariables before entering a room?

Thanks in advance!

Posted: 07 May 2009, 05:42
by ThomasLund
Hmmmm - I think its more a question for the "regular" parts of the forums.

My guess:
You can always add this kind of functionality using extensions - write up a server side extension that you can send off the user variables to before joining up.