# Sandbox.PlayerController.UpdateDucking

```csharp
void UpdateDucking(bool wantsDuck)
```

Called during FixedUpdate when UseInputControls is enabled. Will duck if requested.
If not, and we're ducked, will unduck if there is room

### Parameters

- `wantsDuck` (`bool`)

Declared in [Sandbox.PlayerController](/api/Sandbox.PlayerController).
Assembly: `Sandbox.Engine`.
