April 7, 20233 yr DP.SetObjective("Waiting for team."); if (DP.CheckArea(3.776016f, 21.64086f, -5.713871f,10)) return true; if (DP.LeaderReadyPull()) return true; return false;
April 7, 20233 yr Author 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 ?
April 7, 20233 yr Author Just now, bobbekong said: in these codes , what does DP.CheckArea(3.776016f, 21.64086f, -5.713871f,10)) means ? 生态船组队副本.xml
April 8, 20233 yr 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.
Create an account or sign in to comment