Click or drag to resize

BasePlayerSpectatePlayer Method (BasePlayer, SpectateMode)

Makes this BasePlayer spectate (watch) another player.

Namespace:  SampSharp.GameMode.World
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public virtual void SpectatePlayer(
	BasePlayer targetPlayer,
	SpectateMode mode
)

Parameters

targetPlayer
Type: SampSharp.GameMode.WorldBasePlayer
The Player that should be spectated.
mode
Type: SampSharp.GameMode.DefinitionsSpectateMode
The mode to spectate with.
Remarks
Order is CRITICAL! Ensure that you use ToggleSpectating(Boolean) before SpectatePlayer(BasePlayer, SpectateMode).
See Also