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!
Post here all your questions related with SmartFoxServer .Net/Unity3D API
2 posts • Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 1 guest