logo bannerlogo banner
Page Navigator
  • player is a Player object
  • weapon is a Gun class (see Gun)
  • bullet is an object containing the bullet's properties:
    • posX: The X position of the bullet
    • posY: The Y position of the bullet
    • posZ: The Z position of the bullet
    • dirX: The X direction of the bullet
    • dirY: The Y direction of the bullet
    • dirZ: The Z direction of the bullet
bot.on('playerFire', (player, weapon, bullet) => {
    console.log(`${player.name} fired their ${weapon.weaponName}!`);
});