Show / Hide Table of Contents

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 Source

Items

The list of entities to spawn, with amounts and orGroups.

Declaration
public List<EntitySpawnEntry> Items
Field Value
Type Description
List<EntitySpawnEntry>
| Improve this Doc View Source

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
| Improve this Doc View Source

Uses

How many uses before the item should delete itself.

Declaration
public int Uses
Field Value
Type Description
System.Int32
  • Improve this Doc
  • View Source
☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾