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

◆ OnHitByItem()

virtual void Terraria.ModLoader.ModNPC.OnHitByItem ( Player player,
Item item,
NPC::HitInfo hit,
int damageDone )
inlinevirtual

Allows you to create special effects when this NPC is hit by a melee weapon.
Runs on the client or server doing the damage.

Parameters
player
item
hit
damageDone

Definition at line 514 of file ModNPC.cs.

515 {
516 }