Simple Magic Spellbook System (#7823)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
15
Content.Server/Spawners/Components/TimedDespawnComponent.cs
Normal file
15
Content.Server/Spawners/Components/TimedDespawnComponent.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user