Table of Contents

Class ItemSpawning

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

Invoked by SDG.Unturned.ItemManager.onServerSpawningItemDrop.

public class ItemSpawning : CancellableEvent, ICancellable
Inheritance
ItemSpawning
Implements
Inherited Members

Properties

InstanceId

The unique instance ID of this item.

public required uint InstanceId { get; init; }

Property Value

uint

IsDroppedByPlayer

If the item should be considered as dropped by a player when being despawned.

public required bool IsDroppedByPlayer { get; init; }

Property Value

bool

IsWideSpread

If the items are spread out randomly.

public required bool IsWideSpread { get; init; }

Property Value

bool

Item

Extra information about the item.

public required Item Item { get; init; }

Property Value

Item

PlayDropEffect

If the drop sound is played on drop.

public required bool PlayDropEffect { get; init; }

Property Value

bool

PlayerDropped

The player that dropped the item, if any.

public required WarfarePlayer? PlayerDropped { get; init; }

Property Value

WarfarePlayer

PlayerDroppedId

The player that dropped the item, if any.

public required CSteamID PlayerDroppedId { get; init; }

Property Value

CSteamID

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.