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

◆ HitDirectionOverride

int? Terraria.NPC.HitModifiers.HitDirectionOverride
setprivate get

Overrides the direction to apply knockback.
Will not affect P:Terraria.NPC.HitModifiers.HitDirection, only the final F:Terraria.NPC.HitInfo.HitDirection
If set by multiple mods, only the last override will apply.
Intended for use by flails, or other projectiles which need to hit the NPC away from the player, even when striking from behind.

Definition at line 203 of file NPC.cs.

203{ private get; set; }

Referenced by Terraria.NPC.HitModifiers.HitModifiers(), and Terraria.NPC.HitModifiers.ToHitInfo().