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

◆ CanBeTalkedTo

bool Terraria.NPC.CanBeTalkedTo
get

Definition at line 1336 of file NPC.cs.

1337 {
1338 get
1339 {
1340 if (isLikeATownNPC && aiStyle == 7)
1341 {
1342 return velocity.Y == 0f;
1343 }
1344 return false;
1345 }
1346 }
int aiStyle
Selects which vanilla code to use for the AI method. Vanilla NPC AI styles are enumerated in the T:Te...
Definition NPC.cs:1013
bool isLikeATownNPC
Definition NPC.cs:1529