player is a Player objectweapon is an initialized Gun class (see Gun)weaponId is the ID of the ammo pack the game assigns (this counts up from 0 for each ammo type)bot.on('playerCollectAmmo', (player, weapon, weaponId) => {
console.log(`${player.name} collected ${weapon.ammo.pickup} ammo for their ${weapon.weaponName}!`);
});
player is a Player objectweapon is an initialized Gun class (see Gun)weaponId is the ID of the ammo pack the game assigns (this counts up from 0 for each ammo type)bot.on('playerCollectAmmo', (player, weapon, weaponId) => {
console.log(`${player.name} collected ${weapon.ammo.pickup} ammo for their ${weapon.weaponName}!`);
});