private void StartLoopSound() { m_soundEmitter.PlaySingleSound(m_meteorFly); }
internal void StartNoAmmoSound(MyEntity3DSoundEmitter soundEmitter) { if (NoAmmoSound != null) { soundEmitter.StopSound(true); soundEmitter.PlaySingleSound(NoAmmoSound, true); } }
public static void PlaySound(string name, float volume) { var emitter = new MyEntity3DSoundEmitter(MyAPIGateway.Session.ControlledObject.Entity as MyEntity); emitter.CustomVolume = volume; emitter.PlaySingleSound(new MySoundPair(name)); }