|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inlinevirtual |
Allows you to make things happen whenever this NPC is hit, such as creating dust or gores.
Called on local, server and remote clients.
Usually when something happens when an NPC dies such as item spawning, you use NPCLoot, but you can use HitEffect paired with a check for if (NPC.life <= 0) to do client-side death effects, such as spawning dust, gore, or death sounds.
Definition at line 289 of file ModNPC.cs.