Class SpawnItemsOnUseComponent
Spawns items when used in hand.
Inheritance
System.Object
SpawnItemsOnUseComponent
Namespace: Content.Server.Storage.Components
Assembly: Content.Server.dll
Syntax
public sealed class SpawnItemsOnUseComponent : Component
Fields
| Improve this Doc View SourceItems
The list of entities to spawn, with amounts and orGroups.
Declaration
public List<EntitySpawnEntry> Items
Field Value
Type | Description |
---|---|
List<EntitySpawnEntry> |
Sound
A sound to play when the items are spawned. For example, gift boxes being unwrapped.
Declaration
public SoundSpecifier Sound
Field Value
Type | Description |
---|---|
Robust.Shared.Audio.SoundSpecifier |
Uses
How many uses before the item should delete itself.
Declaration
public int Uses
Field Value
Type | Description |
---|---|
System.Int32 |