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

◆ TargetClosest_WOF()

void Terraria.NPC.TargetClosest_WOF ( bool faceTarget = true)
inline

Definition at line 83263 of file NPC.cs.

83264 {
83265 float distance = 0f;
83266 float realDist = 0f;
83267 bool t = false;
83268 int tankTarget = -1;
83269 for (int i = 0; i < 255; i++)
83270 {
83271 if (Main.player[i].active && !Main.player[i].dead && !Main.player[i].ghost && Main.player[i].gross)
83272 {
83274 }
83275 }
83277 }
void TryTrackingTarget(ref float distance, ref float realDist, ref bool t, ref int tankTarget, int j)
Definition NPC.cs:83279
void SetTargetTrackingValues(bool faceTarget, float realDist, int tankTarget)
Definition NPC.cs:83309

References Terraria.Main.player, Terraria.NPC.SetTargetTrackingValues(), and Terraria.NPC.TryTrackingTarget().

Referenced by Terraria.NPC.VanillaAI_Inner().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: