Aura.Channel.World.Entities.NPC.WarpFlash C# (CSharp) Метод

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

Like Warp, except it sends a screen flash and sound effect to the departing region and arriving region.
Ideal for NPCs like Tarlach. Be careful not to "double flash" if you're swapping two NPCs. Only ONE of the NPCs needs to use this method, the other can use the regular Warp.
public WarpFlash ( int regionId, int x, int y ) : bool
regionId int
x int
y int
Результат bool
		public bool WarpFlash(int regionId, int x, int y)
		{
			// "Departing" effect
			if (this.Region != Region.Limbo)
			{
				Send.Effect(this, Effect.ScreenFlash, 3000, 0);
				Send.PlaySound(this, "data/sound/Tarlach_change.wav");
			}

			if (!this.Warp(regionId, x, y))
				return false;

			// "Arriving" effect
			Send.Effect(this, Effect.ScreenFlash, 3000, 0);
			Send.PlaySound(this, "data/sound/Tarlach_change.wav");

			return true;
		}