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

◆ WithinRange()

bool Terraria.Entity.WithinRange ( Vector2 Target,
float MaxRange )
inlineinherited

Definition at line 307 of file Entity.cs.

308 {
309 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
310 //IL_0006: Unknown result type (might be due to invalid IL or missing references)
311 return Vector2.DistanceSquared(Center, Target) <= MaxRange * MaxRange;
312 }
Vector2 Center
Definition Entity.cs:70

References Terraria.Entity.Center.

Referenced by Terraria.ModLoader.Default.Patreon.OrianSetEffectPlayer.PostUpdate().

+ Here is the caller graph for this function: