# Sandbox.BaseCombatWeapon.PrimaryAttack

```csharp
void PrimaryAttack()
```

Fire the primary attack. The default fires [Sandbox.BaseCombatWeapon.Ballistics](/api/Sandbox.BaseCombatWeapon/Ballistics) - spends a round, shoots
the volley from [Sandbox.BaseCombatWeapon.AimRay](/api/Sandbox.BaseCombatWeapon/AimRay) with [Sandbox.BaseCombatWeapon.CurrentSpread](/api/Sandbox.BaseCombatWeapon/CurrentSpread), and plays the effects
on every peer. Override for melee, projectiles and tools. Runs once, on whoever controls the
weapon - the owning client for a held weapon (its hits reach the host as claims, see
[Sandbox.BaseCombatWeapon.ShootBullet](/api/Sandbox.BaseCombatWeapon/ShootBullet)), or the host for
seat/NPC/world weapons (damage applies directly).

Declared in [Sandbox.BaseCombatWeapon](/api/Sandbox.BaseCombatWeapon).
Assembly: `Sandbox.Engine`.
