Class UnloadingWeaponEventArgs
Contains all information before a player's weapon is unloaded.
Inheritance
System.Object
UnloadingWeaponEventArgs
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Exiled.Events.EventArgs.Player
Assembly: Exiled.Events.dll
Syntax
public class UnloadingWeaponEventArgs : IPlayerEvent, IFirearmEvent, IItemEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceUnloadingWeaponEventArgs(Player, Firearm, Boolean)
Initializes a new instance of the UnloadingWeaponEventArgs class.
Declaration
public UnloadingWeaponEventArgs(Player player, Firearm firearm, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
Firearm | firearm | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceFirearm
Gets the Firearm being unloaded.
Declaration
public Firearm Firearm { get; }
Property Value
Type | Description |
---|---|
Firearm |
IsAllowed
Gets or sets a value indicating whether or not the weapon can be unloaded.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item
Declaration
public Item Item { get; }
Property Value
Type | Description |
---|---|
Item |
Player
Gets the player who's unloading the weapon.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |