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

◆ TownNPCAttackProjSpeed()

virtual void Terraria.ModLoader.GlobalNPC.TownNPCAttackProjSpeed ( NPC npc,
ref float multiplier,
ref float gravityCorrection,
ref float randomOffset )
inlinevirtualinherited

Allows you to determine the speed at which a 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
npc
multiplier
gravityCorrection
randomOffset

Definition at line 730 of file GlobalNPC.cs.

731 {
732 }