logo bannerlogo banner
Page Navigator

Example Usage

import ThrowGrenadeDispatch from 'yolkbot/dispatches/ThrowGrenadeDispatch';

bot.dispatch(new ThrowGrenadeDispatch(1)); // max power

Arguments

  • power (number): The power of the throw, ranging from 0 to 1 with up to two decimal places. 1 is the maximum power, and 0 is as if you just tap the q key.

Checks

  • The bot must be playing the game
  • The bot must not be reloading, swapping between the primary/secondary, or using the melee
  • The power specified must be a valid power (0-1)

Notes

The bot will throw the grenade in the direction the bot is facing. The power will help decide how far it goes, but actually knowing where it would go is heavy trial and error.