17 lines
442 B
C#
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;
|
|
}
|