Table of Contents

Class SpawningItemEventArgs

Namespace
Exiled.Events.EventArgs.Map
Assembly
Exiled.Events.dll

Contains all information before the server spawns an item.

public class SpawningItemEventArgs : IDeniableEvent, IPickupEvent, IExiledEvent
Inheritance
SpawningItemEventArgs
Implements
Inherited Members
Extension Methods

Constructors

SpawningItemEventArgs(ItemPickupBase, bool, DoorVariant)

Initializes a new instance of the SpawningItemEventArgs class.

public SpawningItemEventArgs(ItemPickupBase pickupBase, bool shouldInitiallySpawn, DoorVariant door)

Parameters

pickupBase ItemPickupBase
shouldInitiallySpawn bool
door DoorVariant

Properties

IsAllowed

Gets or sets a value indicating whether the item can be spawned.

public bool IsAllowed { get; set; }

Property Value

bool

Pickup

Gets a value indicating the pickup being spawned.

public Pickup Pickup { get; }

Property Value

Pickup

ShouldInitiallySpawn

Gets or sets a value indicating whether the item will be initially spawned.

public bool ShouldInitiallySpawn { get; set; }

Property Value

bool

TriggerDoor

Gets or sets a value indicating the trigger door for pickup.

public Door TriggerDoor { get; set; }

Property Value

Door

Remarks

Works only when ShouldInitiallySpawn is false. null when ShouldInitiallySpawn is true.