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

◆ CanBeHitByProjectile()

virtual ? bool Terraria.ModLoader.GlobalNPC.CanBeHitByProjectile ( NPC npc,
Projectile projectile )
inlinevirtualinherited

Allows you to determine whether an 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
npc
projectile
Returns

Definition at line 427 of file GlobalNPC.cs.

428 {
429 return null;
430 }