logo bannerlogo banner
Page Navigator
  • type is either 0 (ammo) or 1 (grenade)
  • pos is an object with the x, y, and z properties
  • id is the ID of the item drop the game assigns (this counts up from 0 for each item type)
bot.on('spawnItem', (type, pos, id) => {
    console.log(`a ${type} (#${id}) has spawned at position:`, pos);
})