Example Usage

import GoToCoopDispatch from 'yolkbot/dispatches/GoToCoopDispatch';

bot.dispatch(new GoToCoopDispatch());

Checks

  • The bot must be playing
  • The game must be a KOTC gamemode
  • There must be an accessible coop
  • The bot must have the PATHFINDING intent

Important Note

A GoToCoopDispatch 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 GoToCoopDispatch