Class SpawningItemEventArgs
Contains all information before the server spawns an item.
Inheritance
System.Object
    SpawningItemEventArgs
  Inherited Members
      System.Object.ToString()
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
  Namespace: Exiled.Events.EventArgs.Map
Assembly: Exiled.Events.dll
Syntax
public class SpawningItemEventArgs : IDeniableEvent, IPickupEvent, IExiledEventConstructors
| Improve this Doc View SourceSpawningItemEventArgs(ItemPickupBase, Boolean, DoorVariant)
Initializes a new instance of the SpawningItemEventArgs class.
Declaration
public SpawningItemEventArgs(ItemPickupBase pickupBase, bool shouldInitiallySpawn, DoorVariant door)Parameters
| Type | Name | Description | 
|---|---|---|
| InventorySystem.Items.Pickups.ItemPickupBase | pickupBase | |
| System.Boolean | shouldInitiallySpawn | |
| Interactables.Interobjects.DoorUtils.DoorVariant | door | 
Properties
| Improve this Doc View SourceIsAllowed
Gets or sets a value indicating whether or not the item can be spawned.
Declaration
public bool IsAllowed { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
Pickup
Gets a value indicating the pickup being spawned.
Declaration
public Pickup Pickup { get; }Property Value
| Type | Description | 
|---|---|
| Pickup | 
ShouldInitiallySpawn
Gets or sets a value indicating whether or not the item will be initially spawned.
Declaration
public bool ShouldInitiallySpawn { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
TriggerDoor
Gets or sets a value indicating the trigger door for pickup.
Declaration
public Door TriggerDoor { get; set; }Property Value
| Type | Description | 
|---|---|
| Door | 
Remarks
Works only when ShouldInitiallySpawn is false. null when ShouldInitiallySpawn is true.