# Sandbox.BaseInventoryItem.ShouldAvoid

```csharp
bool ShouldAvoid { get; set; }
```

True when the inventory should avoid auto-switching to this item - e.g. a gun with nothing to
fire. [Sandbox.BaseInventoryComponent.GetBestItem](/api/Sandbox.BaseInventoryComponent/GetBestItem) falls back to avoided items only when there's
nothing better.

Declared in [Sandbox.BaseInventoryItem](/api/Sandbox.BaseInventoryItem).
Assembly: `Sandbox.Engine`.
