Example Usage

import GoToSpatulaDispatch from 'yolkbot/dispatches/GoToSpatulaDispatch';

bot.dispatch(new GoToSpatulaDispatch());

Checks

  • The bot must be playing
  • The game must be a Capture the Spatula gamemode
  • The spatula must be on the ground
  • The bot must have the PATHFINDING intent

Important Note

A GoToSpatulaDispatch 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:

  1. Set bot.pathing.followingPath to false
  2. Do whatever looking/movement/whatever you want to do
  3. If you HAVE NOT MOVED, just set bot.pathing.followingPath back to true
  4. If you HAVE MOVED, you will need to create a new GoToSpatulaDispatch