Setting SetUserVariables before joining a room

Post here all your questions related with SmartFoxServer .Net/Unity3D API

Moderators: Lapo, Bax

matrix211v1
Posts: 61
Joined: 16 Jan 2009, 14:48

Setting SetUserVariables before joining a room

Postby matrix211v1 » 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!
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

Postby ThomasLund » 07 May 2009, 05:42

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.

/Thomas

Return to “.Net / Unity3D API”

Who is online

Users browsing this forum: No registered users and 26 guests