Requ
Members
-
Joined
-
Last visited
Solutions
-
Requ's post in Target pet when moving towards him was marked as the answerI have managed to workaround this:
wManager.Events.OthersEvents.OnPathFinderFindPathResult += RematcherEventHandler; private void RematcherEventHandler(Vector3 @from, Vector3 to, List<Vector3> path, string continentnamempq, bool resultsuccess) { // Put some checks as you want them to avoid too many checks. var nearbyPet = ObjectManager.GetNearestWoWUnit(ObjectManager.GetWoWUnitWildPets(), to); if (nearbyPet != null && ObjectManager.Target.Guid != nearbyPet.Guid) { Logging.Write("[Rematcher] Changing target: " + nearbyPet.Name); Lua.LuaDoString("local rematch = Rematch; rematch: LoadTeam(\"" + nearbyPet.Name + "\")"); } } Not ideal when 2 different as in same spot and are moving, but does the trick.