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

◆ CanChat()

virtual ? bool Terraria.ModLoader.GlobalNPC.CanChat ( NPC npc)
inlinevirtualinherited

Allows you to determine whether this NPC can talk with the player. Return true to allow talking with the player, return false to block this NPC from talking with the player, and return null to use the vanilla code for whether the NPC can talk. Returns null by default.

Parameters
npc
Returns

Definition at line 601 of file GlobalNPC.cs.

602 {
603 return null;
604 }