# Apply Spray To Target

The **Apply Spray To Target** node rotates an aim target by the current **Spray** settings before downstream aim nodes solve. Put it before [Aim Weapon](aim-weapon.md) when you want the weapon or muzzle to follow the same burst recoil.


## Usage

1. Add the **Apply Spray To Target** node before [Aim Weapon](aim-weapon.md) or any other node that should consume the sprayed target.
2. Connect the raw aim **Target** and a reference **Space**, usually a no-spray camera or view transform.
3. Feed the current [Spray Settings](spray.md?id=spray-settings) into **Spray** and update `Shots Fired In Burst` as the burst continues.
4. If you want softer weapon motion, enable **Smoothing** on this node.
5. Connect **Adjusted Target** to the downstream target input.

If you are using [**Spray Pattern** mode](spray.md?id=spray-mode), create a [**Spray Pattern** asset](spray.md?id=spray-pattern-asset) from **Animation > Spray Pattern** and assign it inside the shared **Spray** settings.

## Output Pins

| Pin | Type | Description |
|-----|------|-------------|
| Adjusted Target | Vector | Output target with spray applied in <span class="fr-term" tabindex="0" data-tooltip-key="global-space">global space</span> |

## Input Pins

| Pin | Type | Description |
|-----|------|-------------|
| Target | Vector | Target position in <span class="fr-term" tabindex="0" data-tooltip-key="global-space">global space</span> |
| Space | Transform | Reference transform in <span class="fr-term" tabindex="0" data-tooltip-key="global-space">global space</span>. X = forward, Y = right, Z = up |
| Spray | [Spray Settings](spray.md?id=spray-settings) | Spray settings to apply |
| Smoothing | [Smoothing Settings](smoothing.md) | Optional visual smoothing for the spray rotation |

## Notes

Apply Spray To Target converts **Target** into the local space of **Space**, rotates that local vector by the spray offset, then transforms it back out. That means the regular aim setup stays the same, but the target that downstream nodes see already includes spray.

Smoothing lives on this node, not inside the shared **Spray** settings, so you can reuse the same burst definition in gameplay, on the weapon branch, and on the camera branch without automatically adding extra lag everywhere.

If smoothing is disabled, or if the current spray resolves to no offset, **Adjusted Target** is the same as **Target**.

If you also want visible camera recoil, add [Apply Spray To Camera](apply-spray-to-camera.md) on a separate camera branch and feed both spray nodes the same shared spray settings.

For the full spray reference, including spray modes, the spray pattern asset editor, and Blueprint helpers, see [Spray](spray.md).
