Class PickingUpItemEventArgs
Contains all information before a player picks up an item.
public class PickingUpItemEventArgs : IPlayerEvent, IPickupEvent, IDeniableEvent, IExiledEvent
- Inheritance
-
PickingUpItemEventArgs
- Implements
- Inherited Members
- Extension Methods
Constructors
PickingUpItemEventArgs(Player, ItemPickupBase, bool)
Initializes a new instance of the PickingUpItemEventArgs class.
public PickingUpItemEventArgs(Player player, ItemPickupBase pickup, bool isAllowed = true)
Parameters
Properties
IsAllowed
Gets or sets a value indicating whether the item can be picked up.
public bool IsAllowed { get; set; }
Property Value
Pickup
Gets the pickup that's being picked up.
public Pickup Pickup { get; }
Property Value
Player
Gets the player who's picking up an item.
public Player Player { get; }