Hi,
public static bool CheckArea(float x, float y, float z, int range)
{
if (!ObjectManager.GetObjectWoWUnit().Any(u => u.Type != WoWObjectType.Player && u.IsAlive && u.IsAttackable && u.Position.DistanceTo(new Vector3(x, y, z)) < range))
return true;
return false;
}
The code is in the profile "Script" element.