From 7d98f757660b11f61501e046502734f6e903f571 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Thu, 7 May 2020 04:52:53 +0100 Subject: [PATCH] Makes the bot face the auto walk direction and stay looking that way after --- Core/Commands/Movement/AutoPilotLocal.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Core/Commands/Movement/AutoPilotLocal.cs b/Core/Commands/Movement/AutoPilotLocal.cs index 1db0929..02e5cca 100644 --- a/Core/Commands/Movement/AutoPilotLocal.cs +++ b/Core/Commands/Movement/AutoPilotLocal.cs @@ -1,6 +1,9 @@ using System; using OpenMetaverse; using BetterSecondBotShared.Static; +using System.Runtime.CompilerServices; +using System.Threading; + namespace BSB.Commands.Movement { public class AutoPilotLocal : CoreCommand_1arg @@ -63,6 +66,8 @@ namespace BSB.Commands.Movement { if (helpers.inrange(z, 0, 5000) == true) { + bot.GetClient.Self.Movement.TurnToward(new Vector3(x,y,z), true); + Thread.Sleep(500); bot.GetClient.Self.AutoPilotLocal(x, y, z); return true; }