# Events

### OnBulletHit

[![image.png](https://docs.ccragdollgames.com/uploads/images/gallery/2025-08/scaled-1680-/i6Uimage.png)](https://docs.ccragdollgames.com/uploads/images/gallery/2025-08/i6Uimage.png)

#### Description

- Called when a bullet hits something
- Can be used to apply damage, spawn decals etc

#### Arguments

- **Hit** - the HitResult structure

### OnBulletShot

[![image.png](https://docs.ccragdollgames.com/uploads/images/gallery/2025-08/scaled-1680-/ODEimage.png)](https://docs.ccragdollgames.com/uploads/images/gallery/2025-08/ODEimage.png)

#### Description

- Called when a bullet spawns (or the line trace is fired)
- Can be used for playing sounds, niagara fx and others.

#### Arguments

- **StartLocation** - the location where the bullet has spawned (i.e. the muzzle socket position)
- **Hit** - HitResult of the actual trace
- **Success** - if the trace hit something or not

### OnMagazineEmpty

[![image.png](https://docs.ccragdollgames.com/uploads/images/gallery/2025-08/scaled-1680-/ijuimage.png)](https://docs.ccragdollgames.com/uploads/images/gallery/2025-08/ijuimage.png)

#### Description

- Called when there are no more bullets in the current magazine

### OnOutOfAmmo

[![image.png](https://docs.ccragdollgames.com/uploads/images/gallery/2025-08/scaled-1680-/0H6image.png)](https://docs.ccragdollgames.com/uploads/images/gallery/2025-08/0H6image.png)

#### Description

- Called when there are no more bullets

### OnWeaponFired

[![image.png](https://docs.ccragdollgames.com/uploads/images/gallery/2025-08/scaled-1680-/bIhimage.png)](https://docs.ccragdollgames.com/uploads/images/gallery/2025-08/bIhimage.png)

### Description

- Called when the weapon is fired (not per bullet - i.e. on burst, will be called once even if the burst has more bullets)