Aura.Channel.Scripting.Scripts.NpcScript.SetHoodDown C# (CSharp) Метод

SetHoodDown() публичный Метод

Pulls down the hood of all equipped robes.
public SetHoodDown ( ) : void
Результат void
		public void SetHoodDown()
		{
			if (this.NPC == null)
				throw new InvalidOperationException("NPC's race has to be set first.");

			var item = this.NPC.Inventory.GetItemAt(Pocket.Robe, 0, 0);
			if (item != null)
				item.Info.State = 1;
			item = this.NPC.Inventory.GetItemAt(Pocket.RobeStyle, 0, 0);
			if (item != null)
				item.Info.State = 1;
			item = this.NPC.Inventory.GetItemAt(Pocket.Armor, 0, 0);
			if (item != null)
				item.Info.State = 1;
			item = this.NPC.Inventory.GetItemAt(Pocket.ArmorStyle, 0, 0);
			if (item != null)
				item.Info.State = 1;
		}