Setting SetUserVariables before joining a room
Posted: 06 May 2009, 15:17
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!
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!