/*
  * with vsync turned on, this function errors for some reason - without vsync on, the Lua turning part gets ignore (which was supposed to nudge the character so the server recognizes changed movement)
  */
 public static void FaceUnit(WoWUnit unit)
 {
     ClickToMove.CGPlayer_C__ClickToMove(unit.Position.X, unit.Position.Y, unit.Position.Z, unit.Guid, (int)ClickToMoveType.Face, 0.5f);
     //Lua.LuaDoString("TurnLeftStart(); TurnLeftStop();");
     //Lua.LuaDoString("TurnRightStart(); TurnRightStop();");
 }
 public static void Face(Vector3 to, float addRadian = 0)
 {
     ClickToMove.CGPlayer_C__ClickToMove(0, 0, 0, ObjectManager.Me.Guid, (int)ClickToMoveType.Face, (float)System.Math.Atan2(to.Y - ObjectManager.Me.Position.Y, to.X - ObjectManager.Me.Position.X) + addRadian);
     //Lua.LuaDoString("TurnLeftStart(); TurnLeftStop();");
     //Lua.LuaDoString("TurnRightStart(); TurnRightStop();");
 }