onRoomVariablesUpdate()
Availability:
SmartFoxServer Basic / Pro
Usage:
smartFox.onRoomVariablesUpdate(roomObj <propList>, changedVars <propList>)
Description:
The event is fired when room variables are updated in a certain
room. A client receives these notifications only from the room(s) where he's
currently logged in.
To optimize bandwidth only the variables that changed are transmitted.
Parameters:
roomObj | The propertylist describing the room in which variables were updated | |
changedVars | A propertylist with the names of the changed variables as keys |
Returns:
nothing
Example:
on onRoomVariablesUpdate me, roomObj, changedVars -- We're interested in seeing if the variable called "score" was changed if (changedVars["score"]) then put("Current score: " & roomObj["score"]) end if end
See also: