logo bannerlogo banner
Page Navigator

Example Usage

bot.emit('goToPlayer', '1ust'); // "1ust" can be a player name or ID

// legacy dispatches: bot.dispatch(new GoToPlayerDispatch('1ust'));

Arguments

  • 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.

Checks

  • The bot must be playing
  • The target must be valid and playing
  • The bot must have the PATHFINDING intent

Important Note

A GoToAmmoDispatch will hijack both the looking and the movement of the bot. This means that you will run into issues if you issue ANY rotation/movement based actions, including LookAt and Move.