bobbekong 0 Posted April 7 Share Posted April 7 DP.SetObjective("Waiting for team."); if (DP.CheckArea(3.776016f, 21.64086f, -5.713871f,10)) return true; if (DP.LeaderReadyPull()) return true; return false; Link to comment Share on other sites More sharing options...
bobbekong 0 Posted April 7 Author Share Posted April 7 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 More sharing options...
bobbekong 0 Posted April 7 Author Share Posted April 7 Just now, bobbekong said: in these codes , what does DP.CheckArea(3.776016f, 21.64086f, -5.713871f,10)) means ? 生态船组队副本.xml Link to comment Share on other sites More sharing options...
Droidz 2696 Posted April 8 Share Posted April 8 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now