/// <summary> /// Orbwalk a target while moving to Position. /// </summary> public static void Orbwalk(AttackableUnit target, Vector3 position, float extraWindup = 90, float holdAreaRadius = 0, bool useFixedDistance = true, bool randomizeMinDistance = true) { try { if (target.IsValidTarget() && CanAttack()) { DisableNextAttack = false; FireBeforeAttack(target); if (!DisableNextAttack) { if (!NoCancelChamps.Contains(Player.ChampionName)) { LastAATick = LeagueSharp.Common.Utils.GameTimeTickCount + Game.Ping + 100 - (int)(ObjectManager.Player.AttackCastDelay * 1000f); _missileLaunched = false; } Player.IssueOrder(GameObjectOrder.AttackUnit, target); _lastTarget = target; if (ChallengerPlugin.DrawingsMenu.Item("streamingmode").GetValue <bool>()) { VirtualMouse.ShiftClick(target.Position); } return; } } if (CanMove(extraWindup)) { MoveTo(position, holdAreaRadius, false, useFixedDistance, randomizeMinDistance); } } catch (Exception e) { Console.WriteLine(e.ToString()); } }