Event Music & Nuke Countdown Song (#8597)
Co-authored-by: ike709 <ike709@github.com> Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -158,6 +158,18 @@ public sealed class StationSystem : EntitySystem
|
||||
|
||||
#endregion Event handlers
|
||||
|
||||
public Filter GetInStation(EntityUid source, float range = 32f)
|
||||
{
|
||||
var station = GetOwningStation(source);
|
||||
|
||||
if (TryComp<StationDataComponent>(station, out var data))
|
||||
{
|
||||
return GetInStation(data);
|
||||
}
|
||||
|
||||
return Filter.Empty();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retrieves a filter for everything in a particular station or near its member grids.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user