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

◆ PreAI()

virtual bool Terraria.ModLoader.GlobalNPC.PreAI ( NPC npc)
inlinevirtualinherited

Allows you to determine how any NPC behaves. Return false to stop the vanilla AI and the AI hook from being run. Returns true by default.

Parameters
npc
Returns

Definition at line 118 of file GlobalNPC.cs.

119 {
120 return true;
121 }