Table of Contents

Class TriggeringTeslaEventArgs

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

Contains all information before triggering a tesla.

public class TriggeringTeslaEventArgs : IPlayerEvent, ITeslaEvent, IDeniableEvent, IExiledEvent
Inheritance
TriggeringTeslaEventArgs
Implements
Inherited Members
Extension Methods

Constructors

TriggeringTeslaEventArgs(Player, TeslaGate)

Initializes a new instance of the TriggeringTeslaEventArgs class.

public TriggeringTeslaEventArgs(Player player, TeslaGate teslaGate)

Parameters

player Player
teslaGate TeslaGate

Properties

DisableTesla

Gets or sets a value indicating whether the tesla will be deactivated.

public bool DisableTesla { get; set; }

Property Value

bool

IsAllowed

Gets or sets a value indicating whether the player will be detected by the tesla.

public bool IsAllowed { get; set; }

Property Value

bool

IsInHurtingRange

Gets or sets a value indicating whether the player is in hurting range.

public bool IsInHurtingRange { get; set; }

Property Value

bool

IsInIdleRange

Gets or sets a value indicating whether the player will cause the tesla going to be idle.

public bool IsInIdleRange { get; set; }

Property Value

bool

IsTriggerable

Gets or sets a value indicating whether the player will cause the tesla going to be activated.

public bool IsTriggerable { get; set; }

Property Value

bool

Player

Gets the player who triggered the tesla.

public Player Player { get; }

Property Value

Player

Tesla

Gets the Tesla.

public TeslaGate Tesla { get; }

Property Value

TeslaGate