Jump to content

Recommended Posts

Just now, bobbekong said:

DP.SetObjective("Waiting for team.");
if (DP.CheckArea(3.776016f, 21.64086f, -5.713871f,10))
  return true;
if (DP.LeaderReadyPull())
  return true;
return false;

in these codes , what does DP.CheckArea(3.776016f, 21.64086f, -5.713871f,10)) means ?

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...