PierreDeRosette 13 Posted August 17, 2014 Share Posted August 17, 2014 Saurais tu faire en sorte de pouvoir cibler celui qui me cible ? (Joueur ou Mob, excepté pet ?) Merci beaucoup (Surtout si tu a le temps) Link to comment Share on other sites More sharing options...
Droidz 2734 Posted August 18, 2014 Share Posted August 18, 2014 Bonjour, List<WoWUnit> unitTargetMe = new List<WoWUnit>(); var tempsList = ObjectManager.GetObjectWoWUnit(); for (int i = 0; i < tempsList.Count; i++) { if (tempsList[i].IsValid && tempsList[i].IsAlive && tempsList[i].IsTargetingMe && tempsList[i].CreatedBy <= 0 && tempsList[i].SummonedBy <= 0 // Is Pet? ) unitTargetMe.Add(tempsList[i]); } La liste des monstres/joueurs qui te cible sont dans la liste "unitTargetMe". Link to comment Share on other sites More sharing options...
PierreDeRosette 13 Posted August 18, 2014 Author Share Posted August 18, 2014 Jvais tester de suite... 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