import GoToPlayerDispatch from 'yolkbot/dispatches/GoToPlayerDispatch';
bot.dispatch(new GoToPlayerDispatch('1ust'));
target (string): This can either be an ingame username or an ingame player ID. Note that IDs take priority over usernames, so if you pass something like 5 and there is a player with the name 5, the bot will select the player with the ID 5 instead of the player with the name 5. IDs should be passed as strings.PATHFINDING intentA GoToPlayerDispatch will hijack both the looking and the movement of the bot. This means that the bot will not be able to look around or move until it reaches the target. If you NEED TO MOVE, you can:
bot.pathing.followingPath to falsebot.pathing.followingPath back to trueimport GoToPlayerDispatch from 'yolkbot/dispatches/GoToPlayerDispatch';
bot.dispatch(new GoToPlayerDispatch('1ust'));
target (string): This can either be an ingame username or an ingame player ID. Note that IDs take priority over usernames, so if you pass something like 5 and there is a player with the name 5, the bot will select the player with the ID 5 instead of the player with the name 5. IDs should be passed as strings.PATHFINDING intentA GoToPlayerDispatch will hijack both the looking and the movement of the bot. This means that the bot will not be able to look around or move until it reaches the target. If you NEED TO MOVE, you can:
bot.pathing.followingPath to falsebot.pathing.followingPath back to true