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

SetId() protected method

Sets id of the NPC.
Only required for NPCs like Nao and Tin, avoid if possible!
protected SetId ( long entityId ) : void
entityId long
return void
		protected void SetId(long entityId)
		{
			if (this.NPC == null)
				throw new InvalidOperationException("NPC's race has to be set first.");

			this.NPC.EntityId = entityId;
		}