Ejemplo n.º 1
0
 private void OnStartPullAttempt(EntityUid uid, SharedMobStateComponent component, StartPullAttemptEvent args)
 {
     if (component.IsIncapacitated())
     {
         args.Cancel();
     }
 }
Ejemplo n.º 2
0
        private void OnMoveAttempt(EntityUid uid, SharedMobStateComponent component, MovementAttemptEvent args)
        {
            switch (component.CurrentState)
            {
            case SharedCriticalMobState:
            case SharedDeadMobState:
                args.Cancel();
                return;

            default:
                return;
            }
        }