Class DropItemRequested
Invoked by SDG.Unturned.PlayerInventory.onDropItemRequested.
[EventModel(EventSynchronizationContext.Global, SynchronizedModelTags = new string[] { "modify_inventory", "modify_item_regions", "modify_useable" })]
public class DropItemRequested : CancellablePlayerEvent, IPlayerEvent, ICancellable
- Inheritance
-
DropItemRequested
- Implements
- Inherited Members
Properties
Asset
The asset of the item being dropped.
public required ItemAsset Asset { get; init; }
Property Value
- ItemAsset
Exact
If the item should not spread out at all when dropping.
public bool Exact { get; set; }
Property Value
Remarks
This can be changed.
Grounded
If the item should be dropped from the air on client's screen, which doesn't usually happen in vanilla.
public bool Grounded { get; set; }
Property Value
Remarks
This can be changed.
Index
The index of the item within it's page that will be dropped.
public required byte Index { get; init; }
Property Value
Item
Extra information about the item.
public required Item Item { get; init; }
Property Value
- Item
Page
The page of the item that will be dropped.
public required Page Page { get; init; }
Property Value
Position
The position of the item where it will be dropped.
public required Vector3 Position { get; set; }
Property Value
- Vector3
Remarks
This can be changed.
Rotation
The rotation of the item that will be dropped.
public required byte Rotation { get; init; }
Property Value
WideSpread
If the item should be spread out a bit more when dropping.
public bool WideSpread { get; set; }
Property Value
Remarks
This can be changed.
X
The X-position of the item that will be dropped.
public required byte X { get; init; }
Property Value
Y
The Y-position of the item that will be dropped.
public required byte Y { get; init; }