fish-station/Content.Server/Spawners/Components/TimedDespawnComponent.cs
keronshb 11f729d024
Simple Magic Spellbook System (#7823)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2022-05-29 16:29:10 +10:00

15 lines
424 B
C#

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