private void OnBeforeDoorOpened(EntityUid uid, AirlockComponent component, BeforeDoorOpenedEvent args)
 {
     if (!component.CanChangeState())
     {
         args.Cancel();
     }
 }
Ejemplo n.º 2
0
 private void OnBeforeDoorOpened(EntityUid uid, FirelockComponent component, BeforeDoorOpenedEvent args)
 {
     if (component.IsHoldingFire() || component.IsHoldingPressure())
     {
         args.Cancel();
     }
 }