# Sandbox.Npcs.BaseNpcInventory

The inventory an NPC holds its weapons in. It works like a player's, with a reserve that never runs out and
no input driving the active weapon. Derive from it to give NPCs their own ammo rules.

- Kind: class
- Namespace: `Sandbox.Npcs`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.BaseInventoryComponent](/api/Sandbox.BaseInventoryComponent)

## Constructors

- [`BaseNpcInventory`](/api/Sandbox.Npcs.BaseNpcInventory/.ctor)

## Methods

- [`GetAmmo`](/api/Sandbox.Npcs.BaseNpcInventory/GetAmmo): An NPC never runs out: every ammo type has a bottomless reserve.
- [`TakeAmmo`](/api/Sandbox.Npcs.BaseNpcInventory/TakeAmmo): Takes all that was asked for and leaves the reserve as it was.
