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

◆ TownNPCAttackProjSpeed()

virtual void Terraria.ModLoader.ModNPC.TownNPCAttackProjSpeed ( ref float multiplier,
ref float gravityCorrection,
ref float randomOffset )
inlinevirtual

Allows you to determine the speed at which this town NPC throws a projectile when it attacks. Multiplier is the speed of the projectile, gravityCorrection is how much extra the projectile gets thrown upwards, and randomOffset allows you to randomize the projectile's velocity in a square centered around the original velocity. This hook is only used when the town NPC has an attack type of 0 (throwing), 1 (shooting), or 2 (magic).

Parameters
multiplier
gravityCorrection
randomOffset

Definition at line 802 of file ModNPC.cs.

803 {
804 }