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

◆ CanBeHitByProjectile()

virtual ? bool Terraria.ModLoader.ModNPC.CanBeHitByProjectile ( Projectile projectile)
inlinevirtual

Allows you to determine whether this NPC can be hit by the given projectile. Return true to allow hitting the NPC, return false to block hitting the NPC, and return null to use the vanilla code for whether the NPC can be hit. Returns null by default.

Parameters
projectile
Returns

Definition at line 523 of file ModNPC.cs.

524 {
525 return null;
526 }