Exemple #1
0
        public void StopFiringSound(object o = null)
        {
            if (FiringEmitter == null)
            {
                return;
            }

            FiringEmitter.StopSound(false);
        }
        public void StopFiringSound(object o = null)
        {
            if (FiringEmitter == null)
            {
                return;
            }

            if (FiringEmitter.Loop)
            {
                FiringEmitter.StopSound(true);
            }
            else
            {
                FiringEmitter.StopSound(false);
            }
        }
Exemple #3
0
        public void StopFiringSound(object o = null)
        {
            if (FiringEmitter == null)
            {
                return;
            }

            if (FiringEmitter.Loop)
            {
                FiringEmitter.StopSound(true);
                FiringEmitter.PlaySound(FiringSound, stopPrevious: false, skipIntro: true, force2D: false, alwaysHearOnRealistic: false, skipToEnd: true);
            }
            else
            {
                FiringEmitter.StopSound(false);
            }
        }
Exemple #4
0
 public void StopFiringSound(bool force)
 {
     FiringEmitter?.StopSound(force);
 }