Class TogglingWeaponFlashlightEventArgs
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
FirearmoldState
bool
Properties
Firearm
Gets the Firearm being held.
public Firearm Firearm { get; }
Property Value
IsAllowed
Gets or sets a value indicating whether the weapon's flashlight can be toggled.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item triggering the event.
public Item Item { get; }
Property Value
NewState
Gets or sets a value indicating whether the new weapon's flashlight state will be enabled.
public bool NewState { get; set; }
Property Value
Player
Gets the player who's toggling the weapon's flashlight.
public Player Player { get; }