Co-authored-by: ArtisticRoomba <145879011+ArtisticRoomba@users.noreply.github.com> Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com> Co-authored-by: Princess Cheeseballs <66055347+Princess-Cheeseballs@users.noreply.github.com> Co-authored-by: SnappingOpossum <snappingopossum@outlook.com> Co-authored-by: IProduceWidgets <107586145+IProduceWidgets@users.noreply.github.com>
19 lines
521 B
C#
19 lines
521 B
C#
using Content.Shared.Throwing;
|
|
using Content.Shared.Trigger.Components.Triggers;
|
|
|
|
namespace Content.Shared.Trigger.Systems;
|
|
|
|
public sealed partial class TriggerOnLandSystem : TriggerOnXSystem
|
|
{
|
|
public override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
SubscribeLocalEvent<TriggerOnLandComponent, LandEvent>(OnLand);
|
|
}
|
|
|
|
private void OnLand(Entity<TriggerOnLandComponent> ent, ref LandEvent args)
|
|
{
|
|
Trigger.Trigger(ent.Owner, args.User, ent.Comp.KeyOut, predicted: false);
|
|
}
|
|
}
|