bobbekong 0 Posted April 7, 2023 Share Posted April 7, 2023 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 https://wrobot.eu/forums/topic/15126-need-help-to-understand-codes/ Share on other sites More sharing options...
bobbekong 0 Posted April 7, 2023 Author Share Posted April 7, 2023 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 https://wrobot.eu/forums/topic/15126-need-help-to-understand-codes/#findComment-67969 Share on other sites More sharing options...
bobbekong 0 Posted April 7, 2023 Author Share Posted April 7, 2023 Just now, bobbekong said: in these codes , what does DP.CheckArea(3.776016f, 21.64086f, -5.713871f,10)) means ? 生态船组队副本.xml Link to comment https://wrobot.eu/forums/topic/15126-need-help-to-understand-codes/#findComment-67970 Share on other sites More sharing options...
Droidz 2738 Posted April 8, 2023 Share Posted April 8, 2023 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 https://wrobot.eu/forums/topic/15126-need-help-to-understand-codes/#findComment-67976 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