logo bannerlogo banner
Page Navigator

Example Usage

import LookAtPosDispatch from 'yolkbot/dispatches/LookAtPosDispatch';

bot.dispatch(new LookAtPosDispatch({ x: 0, y: 0, z: 0 }));

Arguments

  • position (object): An object containing the X, Y, and Z coordinates to look at. The object should have the following properties:
    • x (number): The X coordinate.
    • y (number): The Y coordinate.
    • z (number): The Z coordinate.

Checks

  • The bot must be playing the game
  • The position passed must have valid X, Y, and Z values