Class ItemSpawning
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
IsDroppedByPlayer
If the item should be considered as dropped by a player when being despawned.
public required bool IsDroppedByPlayer { get; init; }
Property Value
IsWideSpread
If the items are spread out randomly.
public required bool IsWideSpread { get; init; }
Property Value
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
PlayerDropped
The player that dropped the item, if any.
public required WarfarePlayer? PlayerDropped { get; init; }
Property Value
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.