Class SpawningItemEventArgs
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
ItemPickupBaseshouldInitiallySpawn
booldoor
DoorVariant
Properties
IsAllowed
Gets or sets a value indicating whether the item can be spawned.
public bool IsAllowed { get; set; }
Property Value
Pickup
Gets a value indicating the pickup being spawned.
public Pickup Pickup { get; }
Property Value
ShouldInitiallySpawn
Gets or sets a value indicating whether the item will be initially spawned.
public bool ShouldInitiallySpawn { get; set; }
Property Value
TriggerDoor
Gets or sets a value indicating the trigger door for pickup.
public Door TriggerDoor { get; set; }
Property Value
Remarks
Works only when ShouldInitiallySpawn is false. null when ShouldInitiallySpawn is true.