Class UnloadingWeaponEventArgs
Contains all information before a player's weapon is unloaded.
public class UnloadingWeaponEventArgs : IFirearmEvent, IItemEvent, IPlayerEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
UnloadingWeaponEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
UnloadingWeaponEventArgs(Firearm, bool)
Initializes a new instance of the UnloadingWeaponEventArgs class.
public UnloadingWeaponEventArgs(Firearm firearm, bool isAllowed)
Parameters
firearmFirearmThe firearm being unloaded.
isAllowedboolIndicates whether the weapon unloading is allowed.
Properties
Firearm
Gets the Firearm being unloaded.
public Firearm Firearm { get; }
Property Value
IsAllowed
Gets or sets a value indicating whether the weapon can be unloaded.
public bool IsAllowed { get; set; }
Property Value
Item
Gets the Item triggering the event.
public Item Item { get; }
Property Value
Player
Gets the player who's unloading the weapon.
public Player Player { get; }