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

SetLocation() защищенный Метод

Sets NPC's location.
protected SetLocation ( int regionId, int x, int y, byte direction ) : void
regionId int
x int
y int
direction byte
Результат void
		protected void SetLocation(int regionId, int x, int y, byte direction = 0)
		{
			if (this.NPC == null)
				throw new InvalidOperationException("NPC's race has to be set first.");

			this.NPC.SetLocation(regionId, x, y);
			this.NPC.Direction = direction;
		}