|
TModLoader v1.4.4.9
TModLoader source code documentation
|
|
inline |
Finds the closest NPC to this projectile which can be targeted and which it has line of sight to.
| maxRange | The maximum range at which this projectile should search out a target, measured in pixels. Defaults to 800 (50 tiles). Each tile, for reference, measures out to be 16x16 pixels. |
Definition at line 48144 of file Projectile.cs.
References Terraria.Collision.CanHit(), and Terraria.Main.npc.
Referenced by Terraria.Projectile.Damage(), and Terraria.Projectile.HandleMovement().
Here is the call graph for this function:
Here is the caller graph for this function: