# Sandbox.Npcs.BaseCombatNpc.ArmWith

```csharp
void ArmWith(GameObject prefab)
```

Swap the current weapon for one made from a weapon prefab. Host only. Before the NPC has started the new
weapon goes out in its spawn snapshot; after that the [Sandbox.Npcs.BaseCombatNpc.Inventory](/api/Sandbox.Npcs.BaseCombatNpc/Inventory) picks it up and removes the old one.

### Parameters

- `prefab` (`GameObject`)

Declared in [Sandbox.Npcs.BaseCombatNpc](/api/Sandbox.Npcs.BaseCombatNpc).
Assembly: `Sandbox.Engine`.
