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

◆ CanHitNPC()

virtual ? bool Terraria.ModLoader.ModProjectile.CanHitNPC ( NPC target)
inlinevirtual

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

Parameters
targetThe target.

Definition at line 251 of file ModProjectile.cs.

252 {
253 return null;
254 }