Files
tbd-station-14/Content.Shared/Spawners/Components/TimedDespawnComponent.cs
2023-09-17 17:18:52 +10:00

17 lines
442 B
C#

using Robust.Shared.GameStates;
namespace Content.Shared.Spawners.Components;
/// <summary>
/// Put this component on something you would like to despawn after a certain amount of time
/// </summary>
[RegisterComponent]
public sealed partial class TimedDespawnComponent : Component
{
/// <summary>
/// How long the entity will exist before despawning
/// </summary>
[DataField("lifetime")]
public float Lifetime = 5f;
}