Jump to content

Recommended Posts

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".

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...