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

◆ IsProjectileInteractibleAndInInteractionRange()

bool Terraria.Player.IsProjectileInteractibleAndInInteractionRange ( Projectile proj,
ref Vector2 compareSpot )
inline

Definition at line 22067 of file Player.cs.

22068 {
22069 if (!proj.active)
22070 {
22071 return false;
22072 }
22073 if (!proj.IsInteractible())
22074 {
22075 return false;
22076 }
22077 Point point = proj.Hitbox.ClosestPointInRect(compareSpot).ToTileCoordinates();
22079 {
22080 return false;
22081 }
22082 return true;
22083 }
bool IsInTileInteractionRange(int targetX, int targetY, TileReachCheckSettings settings)
Definition Player.cs:29821

References Terraria.DataStructures.TileReachCheckSettings.Simple, Microsoft.Xna.Framework.Point.X, and Microsoft.Xna.Framework.Point.Y.