Page 1 of 1

setUserVariables deletes variables server-side only?

Posted: 15 Jul 2011, 07:19
by jurekf
Hi,

We have a couple of setUserVariables calls that are supposed to delete some UserVariables by setting them to null.

Oddly, the variables are deleted on the server, but are still present on the client. Am I misunderstanding how setUserVariables is supposed to work or is this expected behaviour or a bug?

Posted: 15 Jul 2011, 09:44
by Bax
Are you setting the User Variables to null from the client or from the server?

Posted: 15 Jul 2011, 09:49
by jurekf
We're setting all user variables from the server.

Posted: 15 Jul 2011, 09:54
by Bax
Are you sure you are not preventing the client event to be fired? (the setUserVariables method on the server-side has two signatures).

Posted: 15 Jul 2011, 10:11
by jurekf
We're using the signature without parameters. Also, we're setting two variables in one setVariables call; the other variable is getting set.

Oh, I should mention I've only seen it happen on NPC users and it's pretty consistent. We're also doing the variable change at the same time that we're doing a room change, not sure if that has any effect on it.

I don't remember it happening to regular users.