Makes the bot face the auto walk direction and stay looking that way after
This commit is contained in:
parent
145bebcda3
commit
7d98f75766
1 changed files with 5 additions and 0 deletions
|
|
@ -1,6 +1,9 @@
|
||||||
using System;
|
using System;
|
||||||
using OpenMetaverse;
|
using OpenMetaverse;
|
||||||
using BetterSecondBotShared.Static;
|
using BetterSecondBotShared.Static;
|
||||||
|
using System.Runtime.CompilerServices;
|
||||||
|
using System.Threading;
|
||||||
|
|
||||||
namespace BSB.Commands.Movement
|
namespace BSB.Commands.Movement
|
||||||
{
|
{
|
||||||
public class AutoPilotLocal : CoreCommand_1arg
|
public class AutoPilotLocal : CoreCommand_1arg
|
||||||
|
|
@ -63,6 +66,8 @@ namespace BSB.Commands.Movement
|
||||||
{
|
{
|
||||||
if (helpers.inrange(z, 0, 5000) == true)
|
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);
|
bot.GetClient.Self.AutoPilotLocal(x, y, z);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue