Class UsedItemEventArgs
Contains all information after a player used an item.
public class UsedItemEventArgs : IUsableEvent, IItemEvent, IPlayerEvent, IExiledEvent
- Inheritance
-
UsedItemEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
UsedItemEventArgs(ReferenceHub, UsableItem, bool)
Initializes a new instance of the UsedItemEventArgs class.
public UsedItemEventArgs(ReferenceHub player, UsableItem item, bool causedByHolstering)
Parameters
playerReferenceHubitemUsableItemcausedByHolsteringbool
Properties
CausedByHolstering
Gets a value indicating whether this event was triggered by a player switching items (true) or by waiting after using the item (false).
public bool CausedByHolstering { get; }
Property Value
Remarks
Use this value if you wish to keep the bug where you could switch items quickly to skip this event.
Item
Gets the Item triggering the event.
public Item Item { get; }
Property Value
Player
Gets the player who used the item.
public Player Player { get; }
Property Value
Usable
Gets the item that the player used.
public Usable Usable { get; }