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

◆ ModifyHitByProjectile()

virtual void Terraria.ModLoader.ModNPC.ModifyHitByProjectile ( Projectile projectile,
ref NPC::HitModifiers modifiers )
inlinevirtual

Allows you to modify the damage, knockback, etc., that this NPC takes from a projectile. This method is only called for the owner of the projectile, meaning that in multi-player, projectiles owned by a player call this method on that client, and projectiles owned by the server such as enemy projectiles call this method on the server.

Parameters
projectile
modifiers

Definition at line 533 of file ModNPC.cs.

534 {
535 }