Table of Contents

Class EscapingEventArgs

Namespace
Exiled.Events.EventArgs.Player
Assembly
Exiled.Events.dll

Contains all information before a player escapes.

public class EscapingEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Inheritance
EscapingEventArgs
Implements
Derived
Inherited Members
Extension Methods

Constructors

EscapingEventArgs(Player, RoleTypeId, EscapeScenario)

Initializes a new instance of the EscapingEventArgs class.

public EscapingEventArgs(Player player, RoleTypeId newRole, EscapeScenario escapeScenario)

Parameters

player Player
newRole RoleTypeId
escapeScenario EscapeScenario

Properties

EscapeScenario

Gets or sets the EscapeScenario that will represent for this player.

public EscapeScenario EscapeScenario { get; set; }

Property Value

EscapeScenario

IsAllowed

Gets or sets a value indicating whether the player can escape.

public bool IsAllowed { get; set; }

Property Value

bool

NewRole

Gets or sets the role that will be assigned when the player escapes.

public RoleTypeId NewRole { get; set; }

Property Value

RoleTypeId

Player

Gets the player who's escaping.

public Player Player { get; }

Property Value

Player