Jump to content

Force move to position?


Kensen

Recommended Posts

Hello, use code like (not tested, run this code one time):

wManager.Events.FightEvents.OnFightLoop += delegate(WoWUnit unit, CancelEventArgs cancelable)
{
    if (your procs condition)
    {
        var toPosition = new Vector3(1, 2, 3);
        wManager.Wow.Helpers.MovementManager.MoveTo(toPosition);
        while (wManager.Wow.Helpers.MovementManager.InMoveTo && toPosition.DistanceTo(wManager.Wow.ObjectManager.ObjectManager.Me.Position) > 0.7)
        {
            System.Threading.Thread.Sleep(10);
        }
    }
};

 

Link to comment
Share on other sites

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