Files
crystall-punk-14/Content.Server/Explosion/Components/SpawnOnTriggerComponent.cs

25 lines
674 B
C#
Raw Normal View History

2023-04-26 13:51:48 +10:00
using Content.Server.Explosion.EntitySystems;
using Robust.Shared.Prototypes;
namespace Content.Server.Explosion.Components;
/// <summary>
/// Spawns a protoype when triggered.
/// </summary>
2023-04-26 13:51:48 +10:00
[RegisterComponent, Access(typeof(TriggerSystem))]
public sealed partial class SpawnOnTriggerComponent : Component
2023-04-26 13:51:48 +10:00
{
/// <summary>
/// The prototype to spawn.
/// </summary>
[DataField(required: true)]
public EntProtoId Proto = string.Empty;
/// <summary>
/// Use MapCoordinates for spawning?
/// Set to true if you don't want the new entity parented to the spawner.
/// </summary>
[DataField]
public bool mapCoords;
2023-04-26 13:51:48 +10:00
}