# Sandbox.Npcs.Tasks.FireWeaponTask

Fires a burst at a target. The burst length comes from the weapon's NPC usage - a random shot
count between its burst min and max. Shots only fire while the target is inside the weapon's
engagement band. An empty magazine is reloaded before the burst carries on.

- Kind: class
- Namespace: `Sandbox.Npcs.Tasks`
- Assembly: `Sandbox.Engine`
- Inherits: [Sandbox.Npcs.Tasks.BaseTask](/api/Sandbox.Npcs.Tasks.BaseTask)

## Constructors

- [`FireWeaponTask`](/api/Sandbox.Npcs.Tasks.FireWeaponTask/.ctor)

## Properties

- [`Target`](/api/Sandbox.Npcs.Tasks.FireWeaponTask/Target): The GameObject to aim at.
- [`Weapon`](/api/Sandbox.Npcs.Tasks.FireWeaponTask/Weapon): The weapon component to fire.
