Table of Contents

Class TogglingWeaponFlashlightEventArgs

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

Contains all information before a player toggles the weapon's flashlight.

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

Constructors

TogglingWeaponFlashlightEventArgs(Firearm, bool)

Initializes a new instance of the TogglingWeaponFlashlightEventArgs class.

public TogglingWeaponFlashlightEventArgs(Firearm firearm, bool oldState)

Parameters

firearm Firearm
oldState bool

Properties

Firearm

Gets the Firearm being held.

public Firearm Firearm { get; }

Property Value

Firearm

IsAllowed

Gets or sets a value indicating whether the weapon's flashlight can be toggled.

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 new weapon's flashlight state will be enabled.

public bool NewState { get; set; }

Property Value

bool

Player

Gets the player who's toggling the weapon's flashlight.

public Player Player { get; }

Property Value

Player