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

◆ AnyInteractions()

bool Terraria.NPC.AnyInteractions ( )
inline

Definition at line 71041 of file NPC.cs.

71042 {
71043 if (Main.netMode == 0)
71044 {
71045 if (playerInteraction[Main.myPlayer])
71046 {
71047 return true;
71048 }
71049 }
71050 else
71051 {
71052 for (int i = 0; i < 255; i++)
71053 {
71054 if (playerInteraction[i])
71055 {
71056 return true;
71057 }
71058 }
71059 }
71060 return false;
71061 }
bool[] playerInteraction
Definition NPC.cs:113

References Terraria.Main.myPlayer, Terraria.Main.netMode, and Terraria.NPC.playerInteraction.

Referenced by Terraria.NPC.DoDeathEvents(), and Terraria.NPC.NPCLoot().