Table of Contents

Class DropItemRequested

Namespace
Uncreated.Warfare.Events.Models.Items
Assembly
Uncreated.Warfare.dll

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

bool

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

bool

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

byte

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

Page

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

byte

WideSpread

If the item should be spread out a bit more when dropping.

public bool WideSpread { get; set; }

Property Value

bool

Remarks

This can be changed.

X

The X-position of the item that will be dropped.

public required byte X { get; init; }

Property Value

byte

Y

The Y-position of the item that will be dropped.

public required byte Y { get; init; }

Property Value

byte