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

◆ OnHitByItem()

virtual void Terraria.ModLoader.GlobalNPC.OnHitByItem ( NPC npc,
Player player,
Item item,
NPC::HitInfo hit,
int damageDone )
inlinevirtualinherited

Allows you to create special effects when an NPC is hit by a melee weapon.

Parameters
npc
player
item
hit
damageDone

Definition at line 417 of file GlobalNPC.cs.

418 {
419 }