Definition at line 83613 of file NPC.cs.
83614 {
83616 {
83617 return;
83618 }
83619 int num = (int)
ai[0];
83621 {
83623 if (
nPC.active &&
nPC.aiStyle == 6)
83624 {
83625 nPC.active = false;
83626 if (Main.netMode == 2)
83627 {
83628 nPC.life = 0;
83629 nPC.netSkip = -1;
83630 NetMessage.SendData(23, -1, -1,
null,
num);
83631 }
83633 continue;
83634 }
83635 break;
83636 }
83637 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
int aiStyle
Selects which vanilla code to use for the AI method. Vanilla NPC AI styles are enumerated in the T:Te...
float[] ai
An array with 4 slots used for any sort of data storage, which is occasionally synced from the server...
References Terraria.NPC.ai, Terraria.NPC.aiStyle, Terraria.Main.netMode, Terraria.Main.npc, Terraria.NetMessage.SendData(), and Terraria.Entity.whoAmI.
Referenced by Terraria.NPC.CheckActive().