public void Execute() { WowUnit randomPartymember = NearPartymembers.ElementAt(Rnd.Next(0, NearPartymembers.Count())); if (randomPartymember != null) { WowInterface.I.HookManager.WowFacePosition(WowInterface.I.ObjectManager.Player, randomPartymember.Position); } }
public void Execute() { IWowUnit randomPartymember = NearPartymembers.ElementAt(Rnd.Next(0, NearPartymembers.Count())); if (randomPartymember != null) { Bot.Wow.FacePosition(Bot.Player.BaseAddress, Bot.Player.Position, randomPartymember.Position * ((float)Rnd.NextDouble() / 10.0f)); } }
public void Execute() { WowUnit randomPartymember = NearPartymembers.ElementAt(Rnd.Next(0, NearPartymembers.Count())); if (randomPartymember != null) { WowInterface.HookManager.WowFacePosition(WowInterface.Player, randomPartymember.Position * ((float)Rnd.NextDouble() / 10.0f)); } }
public bool Enter() { NearPartymembers = WowInterface.I.ObjectManager.Partymembers.Where(e => e.Guid != WowInterface.I.ObjectManager.PlayerGuid && e.Position.GetDistance(WowInterface.I.ObjectManager.Player.Position) < 16.0f); return(NearPartymembers.Any()); }
public bool Enter() { NearPartymembers = Bot.Objects.Partymembers.Where(e => e.Guid != Bot.Wow.PlayerGuid && e.Position.GetDistance(Bot.Player.Position) < 16.0f); return(NearPartymembers.Any()); }