Table of Contents

Class SpectatorRole

Namespace
Exiled.API.Features.Roles
Assembly
Exiled.API.dll

Defines a role that represents a spectator.

public class SpectatorRole : Role, IWrapper<PlayerRoleBase>, IVoiceRole
Inheritance
SpectatorRole
Implements
IWrapper<PlayerRoleBase>
Derived
Inherited Members
Extension Methods

Properties

Base

Gets the game PlayerRoles.Spectating.SpectatorRole.

public SpectatorRole Base { get; }

Property Value

SpectatorRole

DeadTime

Gets the total amount of time the player has been dead.

public TimeSpan DeadTime { get; }

Property Value

TimeSpan

DeathPosition

Gets the Player's death position.

public Vector3 DeathPosition { get; }

Property Value

Vector3

DeathTime

Gets the DateTime at which the player died.

public DateTime DeathTime { get; }

Property Value

DateTime

IsReadyToRespawn

Gets a value indicating whether the Player is ready to respawn.

public bool IsReadyToRespawn { get; }

Property Value

bool

SpectatedPlayer

Gets currently spectated Player by this Player. May be null.

public Player SpectatedPlayer { get; }

Property Value

Player

Type

Gets the PlayerRoles.RoleTypeId of this Player.

public override RoleTypeId Type { get; }

Property Value

RoleTypeId

VoiceModule

Gets the PlayerRoles.Voice.VoiceModuleBase of the role.

public VoiceModuleBase VoiceModule { get; }

Property Value

VoiceModuleBase