Server.Items.EffectController.PlaySound C# (CSharp) Méthode

PlaySound() public méthode

public PlaySound ( object trigger ) : void
trigger object
Résultat void
		public void PlaySound( object trigger )
		{
			IEntity ent = null;

			if ( m_PlaySoundAtTrigger )
				ent = trigger as IEntity;

			if ( ent == null )
				ent = this;

			Effects.PlaySound( (ent is Item) ? ((Item)ent).GetWorldLocation() : ent.Location, ent.Map, m_SoundID );
		}