player is a Player objectweapon is a Gun class (see Gun)bullet is an object containing the bullet's properties:
posX: The X position of the bulletposY: The Y position of the bulletposZ: The Z position of the bulletdirX: The X direction of the bulletdirY: The Y direction of the bulletdirZ: The Z direction of the bulletbot.on('playerFire', (player, weapon, bullet) => {
console.log(`${player.name} fired their ${weapon.weaponName}!`);
});
player is a Player objectweapon is a Gun class (see Gun)bullet is an object containing the bullet's properties:
posX: The X position of the bulletposY: The Y position of the bulletposZ: The Z position of the bulletdirX: The X direction of the bulletdirY: The Y direction of the bulletdirZ: The Z direction of the bulletbot.on('playerFire', (player, weapon, bullet) => {
console.log(`${player.name} fired their ${weapon.weaponName}!`);
});