Jump to content

need help to understand codes


bobbekong

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 ?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...