TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ AI_000_TransformBoundNPC()

void Terraria.NPC.AI_000_TransformBoundNPC ( int playerID,
int npcType )
inline

Definition at line 45489 of file NPC.cs.

45490 {
45492 Main.BestiaryTracker.Chats.RegisterChatStartWith(this);
45493 Main.player[playerID].SetTalkNPC(whoAmI);
45494 if (Main.netMode == 2)
45495 {
45496 NetMessage.SendData(40, -1, -1, null, playerID);
45497 }
45498 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
void Transform(int newType)
Definition NPC.cs:91590

References Terraria.Main.BestiaryTracker, Terraria.Main.netMode, Terraria.Main.player, Terraria.NetMessage.SendData(), Terraria.NPC.Transform(), and Terraria.Entity.whoAmI.

Referenced by Terraria.NPC.VanillaAI_Inner().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: