Aura.Channel.Scripting.Scripts.NpcScript.AddPhrase C# (CSharp) Method

AddPhrase() protected method

Adds phrase to AI.
protected AddPhrase ( string phrase ) : void
phrase string
return void
		protected void AddPhrase(string phrase)
		{
			if (this.NPC == null)
				throw new InvalidOperationException("NPC's race has to be set first.");

			if (this.NPC.AI != null)
				this.NPC.AI.Phrases.Add(phrase);
		}