Makes the bot face the auto walk direction and stay looking that way after

This commit is contained in:
Madpeter 2020-05-07 04:52:53 +01:00
parent 145bebcda3
commit 7d98f75766

View file

@ -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;
}