Class DroppingAmmoEventArgs
Contains all information before a player drops ammo.
Inheritance
System.Object
DroppingAmmoEventArgs
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 DroppingAmmoEventArgs : IPlayerEvent, IDeniableEvent, IExiledEvent
Constructors
| Improve this Doc View SourceDroppingAmmoEventArgs(Player, AmmoType, UInt16, Boolean)
Initializes a new instance of the DroppingAmmoEventArgs class.
Declaration
public DroppingAmmoEventArgs(Player player, AmmoType ammoType, ushort amount, bool isAllowed = true)
Parameters
Type | Name | Description |
---|---|---|
Player | player | |
AmmoType | ammoType | |
System.UInt16 | amount | |
System.Boolean | isAllowed |
Properties
| Improve this Doc View SourceAmmoType
Gets the type of ammo being dropped.
Declaration
public AmmoType AmmoType { get; }
Property Value
Type | Description |
---|---|
AmmoType |
Amount
Gets or sets the amount of ammo being dropped.
Declaration
public ushort Amount { get; set; }
Property Value
Type | Description |
---|---|
System.UInt16 |
IsAllowed
Gets or sets a value indicating whether or not the ammo can be dropped.
Declaration
public bool IsAllowed { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Player
Gets the player who's dropping the ammo.
Declaration
public Player Player { get; }
Property Value
Type | Description |
---|---|
Player |