Click or drag to resize

SFSEventPLAYER_TO_SPECTATOR Field

Dispatched when a player is turned to a spectator inside a Game Room.

Namespace:  Sfs2X.Core
Assembly:  SmartFox2X (in SmartFox2X.dll) Version: 1.8.0.0 (1.8.0)
Syntax
C#
public static readonly string PLAYER_TO_SPECTATOR

Field Value

Type: String
Remarks
This event is fired in response to the PlayerToSpectatorRequest request if the operation is executed successfully.

The Params object contains the following parameters:

ParameterDescription
room(Room) An object representing the Room in which the player is turned to spectator.
user(User) An object representing the player who was turned to spectator.
Examples
See the PlayerToSpectatorRequest example.
See Also