Table of Contents

Class TogglingFlashlightEventArgs

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

Contains all information before a player toggles a flashlight.

public class TogglingFlashlightEventArgs : IDeniableEvent, IItemEvent, IPlayerEvent, IExiledEvent
Inheritance
TogglingFlashlightEventArgs
Implements
Inherited Members
Extension Methods

Constructors

TogglingFlashlightEventArgs(ReferenceHub, ToggleableLightItemBase, bool)

Initializes a new instance of the TogglingFlashlightEventArgs class.

public TogglingFlashlightEventArgs(ReferenceHub hub, ToggleableLightItemBase flashlight, bool newState)

Parameters

hub ReferenceHub
flashlight ToggleableLightItemBase
newState bool

Properties

Flashlight

Gets the Flashlight being toggled.

public Flashlight Flashlight { get; }

Property Value

Flashlight

IsAllowed

Gets or sets a value indicating whether the player can toggle the flashlight.

public bool IsAllowed { get; set; }

Property Value

bool

Item

Gets the Item triggering the event.

public Item Item { get; }

Property Value

Item

NewState

Gets or sets a value indicating whether the flashlight should be on.

public bool NewState { get; set; }

Property Value

bool

Player

Gets the player who's toggling the flashlight.

public Player Player { get; }

Property Value

Player